Add terms of service acceptance date to user table (#1046)

* add tos_acceptance_date column to user

* send 451 UNAVAILABLE_FOR_LEGAL_REASONS status

* add create user REST endpoint

* adapt text-frontend to ToS requirements

* set DEBUG_IGNORE_TOS_ACCEPTANCE default to True (temporary change)

* update down revision to f60958968ff8
This commit is contained in:
Andreas Köpf
2023-02-01 23:53:21 +01:00
committed by GitHub
parent e0df9f0b7c
commit bbf038677c
12 changed files with 127 additions and 8 deletions
+1
View File
@@ -147,6 +147,7 @@ if settings.DEBUG_USE_SEED_DATA:
ur = UserRepository(db=session, api_client=api_client)
tr = TaskRepository(db=session, api_client=api_client, client_user=dummy_user, user_repository=ur)
ur.update_user(tr.user_id, enabled=True, show_on_leaderboard=False, tos_acceptance=True)
pr = PromptRepository(
db=session, api_client=api_client, client_user=dummy_user, user_repository=ur, task_repository=tr
)