add TOKEN_TIME and DEFAULT_EMAIL

This commit is contained in:
hay-kot
2021-04-19 19:36:45 -08:00
parent 4a6805479c
commit f14e1e536c
8 changed files with 20 additions and 13 deletions

View File

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