Remove some old crud functions

This commit is contained in:
Sebastiaan
2025-05-24 11:04:23 +02:00
parent c1442f430e
commit 28eb10fcce
12 changed files with 135 additions and 126 deletions

View File

@@ -24,7 +24,7 @@ class UserBase(
mixin.ScoutingId,
mixin.IsActive,
mixin.IsVerified,
BaseSQLModel
BaseSQLModel,
):
pass
@@ -119,3 +119,25 @@ class UsersPublic(BaseSQLModel):
# endregion
# region Password manager ######################################################
# JSON payload containing access token
class Token(BaseSQLModel):
access_token: str
token_type: str = "bearer"
# Contents of JWT token
class TokenPayload(BaseSQLModel):
sub: str | None = None
class NewPassword(BaseSQLModel):
token: str
new_password: str = Field(min_length=8, max_length=40)
# endregion