Багфикс
This commit is contained in:
parent
ebd5050335
commit
355a433e10
2 changed files with 0 additions and 3 deletions
|
@ -188,8 +188,6 @@ async def get_user_avatars_history(user=Depends(get_current_user), uow=Depends(U
|
|||
)
|
||||
async def send_confirmation_code(user_data: SUserSendConfirmationCode, user: SUser = Depends(get_current_user)):
|
||||
redis_session = get_redis_session()
|
||||
if not verify_password(user_data.current_password, user.hashed_password):
|
||||
raise IncorrectAuthDataException
|
||||
|
||||
user_code = generate_confirmation_code()
|
||||
user_mail_data = SConfirmationData.model_validate(
|
||||
|
|
|
@ -62,7 +62,6 @@ class SUser(BaseModel):
|
|||
|
||||
class SUserSendConfirmationCode(BaseModel):
|
||||
email: EmailStr
|
||||
current_password: str = Query(None, min_length=8)
|
||||
|
||||
|
||||
class SUserChangeData(BaseModel):
|
||||
|
|
Loading…
Add table
Reference in a new issue