Compare commits
2 Commits
e0e69f8c06
...
d09c207c97
Author | SHA1 | Date |
---|---|---|
Jimmy | d09c207c97 | |
Jimmy | e5b2fb06f3 |
|
@ -1,4 +1,4 @@
|
|||
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim
|
||||
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9-slim
|
||||
ENV DOCKER=1
|
||||
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
|
|
2
Pipfile
2
Pipfile
|
@ -19,7 +19,7 @@ black = "*"
|
|||
mypy = "*"
|
||||
|
||||
[requires]
|
||||
python_version = "3.8"
|
||||
python_version = "3.9"
|
||||
|
||||
[scripts]
|
||||
test = "pytest app/test/test_main.py -s"
|
||||
|
|
|
@ -12,9 +12,9 @@ class TokenData(BaseModel):
|
|||
|
||||
class User(BaseModel):
|
||||
username: str
|
||||
email: Optional[str] = None
|
||||
full_name: Optional[str] = None
|
||||
disabled: Optional[bool] = None
|
||||
servers: list
|
||||
|
||||
|
||||
class UserInDB(User):
|
||||
hashed_password: str
|
|
@ -4,6 +4,7 @@
|
|||
"full_name": "John Doe",
|
||||
"email": "johndoe@example.com",
|
||||
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW",
|
||||
"disabled": "False"
|
||||
"disabled": "False",
|
||||
"servers": ["a", "b"]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue