Protect the API and add alternative authentication endpoint.

This commit is contained in:
grossmj committed 2021-04-20 11:59:02 +09:30
1 parent e28452f09a
commit 0465cb87f6
7 files changed
+199 -80

No files matched your search

+6
View File
@@ -56,3 +56,9 @@ class User(DateTimeModelMixin, UserBase):
class Config:
orm_mode = True
class Credentials(BaseModel):
username: str
password: str