From ea58f7b3b514098f365c50facc5fc212459acac0 Mon Sep 17 00:00:00 2001 From: l3wdfut4pwr Date: Wed, 29 Apr 2026 02:08:02 +0300 Subject: add google auth --- app/schemas/user.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'app/schemas') 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", + } -- cgit v1.3-3-g829e