1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-06 05:55:23 +02:00

Feature/new-login-page (#989)

* login page refresh

* use user_id for token identification
This commit is contained in:
Hayden 2022-02-22 11:36:58 -09:00 committed by GitHub
parent 684f39fe24
commit 177a430d8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 103 additions and 179 deletions

View file

@ -1,6 +1,6 @@
from typing import Optional
from pydantic import BaseModel
from pydantic import UUID4, BaseModel
from pydantic.types import constr
@ -10,4 +10,5 @@ class Token(BaseModel):
class TokenData(BaseModel):
user_id: Optional[UUID4]
username: Optional[constr(to_lower=True, strip_whitespace=True)] = None