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:
parent
684f39fe24
commit
177a430d8c
5 changed files with 103 additions and 179 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue