diff options
| author | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-29 02:08:02 +0300 |
|---|---|---|
| committer | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-29 02:08:02 +0300 |
| commit | ea58f7b3b514098f365c50facc5fc212459acac0 (patch) | |
| tree | 64924839f51d274cd710b1e88ed0edcad8d7f812 /app/schemas/user.py | |
| parent | 5d18f873e9b72bd00d69e42a10c566d44a0c5255 (diff) | |
add google auth
Diffstat (limited to 'app/schemas/user.py')
| -rw-r--r-- | app/schemas/user.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/schemas/user.py b/app/schemas/user.py index 9f67ff1..bee48aa 100644 --- a/app/schemas/user.py +++ b/app/schemas/user.py @@ -1,6 +1,6 @@ from typing import Optional -from pydantic import BaseModel, EmailStr, Field +from pydantic import BaseModel, EmailStr, Field, field_validator from app.schemas.profile import ProfileRead @@ -49,3 +49,12 @@ class ChangePassword(BaseModel): current_password: str = Field(..., min_length=8) new_password: str = Field(..., min_length=8) repeat_password: str = Field(..., min_length=8) + + +class SetPassword(BaseModel): + new_password: str = Field(..., min_length=8) + repeat_password: str = Field(..., min_length=8) + + model_config = { + "extra": "forbid", + } |
