diff options
| author | 2024-08-19 01:36:48 +0100 | |
|---|---|---|
| committer | 2024-08-19 01:36:48 +0100 | |
| commit | 5210cec166cabafa7c6a4cc9c64a1b4405115296 (patch) | |
| tree | fa96fc8c1813e3b7f2a1f119f79759c30c40dce9 /thallium-backend/src/auth.py | |
| parent | Update default app prefix to empty string (diff) | |
Use the correct kwarg for a user when creating super user
Diffstat (limited to 'thallium-backend/src/auth.py')
| -rw-r--r-- | thallium-backend/src/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thallium-backend/src/auth.py b/thallium-backend/src/auth.py index 1dd1e23..e72ac3a 100644 --- a/thallium-backend/src/auth.py +++ b/thallium-backend/src/auth.py @@ -45,7 +45,7 @@ class TokenAuth(HTTPBase): detail="Incorrect scheme passed", ) if self.allow_regular_users and creds.credentials == CONFIG.super_admin_token.get_secret_value(): - request.state.user = User(user_id=uuid4(), permissions=~UserPermission(0)) + request.state.user = User(id=uuid4(), permissions=~UserPermission(0)) return jwt_data = verify_jwt( |