Fix bugs, convert thumbnail to png, add context menu
This commit is contained in:
parent
c545d4b17d
commit
eb8a302222
37 changed files with 1916 additions and 137 deletions
17
backend/app/schemas/auth.py
Normal file
17
backend/app/schemas/auth.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"""Auth request and response schemas."""
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
class SetupRequest(BaseModel):
|
||||
password: str = Field(..., min_length=8)
|
||||
|
||||
class LoginRequest(BaseModel):
|
||||
password: str
|
||||
|
||||
class ChangePasswordRequest(BaseModel):
|
||||
current_password: str
|
||||
new_password: str = Field(..., min_length=8)
|
||||
|
||||
class AuthStatusResponse(BaseModel):
|
||||
setupRequired: bool
|
||||
loggedIn: bool
|
||||
Loading…
Add table
Add a link
Reference in a new issue