mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-02 14:03:12 -05:00
* add default assets for user profile * add recipe avatar * change user_id to UUID * add profile image upload * setup image cache keys * cleanup tests and add image tests * purge user data on delete * new user repository tests * add user_id validator for int -> UUID conversion * delete depreciated route * force set content type * refactor tests to use temp directory * validate parent exists before createing * set user_id to correct type * update instruction id * reset primary key on migration
31 lines
508 B
Python
31 lines
508 B
Python
from fastapi_camelcase import CamelModel
|
|
from pydantic import UUID4
|
|
|
|
from .user import PrivateUser
|
|
|
|
|
|
class ForgotPassword(CamelModel):
|
|
email: str
|
|
|
|
|
|
class ValidateResetToken(CamelModel):
|
|
token: str
|
|
|
|
|
|
class ResetPassword(ValidateResetToken):
|
|
email: str
|
|
password: str
|
|
passwordConfirm: str
|
|
|
|
|
|
class SavePasswordResetToken(CamelModel):
|
|
user_id: UUID4
|
|
token: str
|
|
|
|
|
|
class PrivatePasswordResetToken(SavePasswordResetToken):
|
|
user: PrivateUser
|
|
|
|
class Config:
|
|
orm_mode = True
|