This commit is contained in:
2024-12-30 19:50:04 +03:00
parent 7997e561f7
commit be8a5212d8
14 changed files with 428 additions and 11 deletions

View File

@@ -414,9 +414,9 @@ class AuthenticationCreatePasswordEventMethods(MethodToEvent):
if found_user := Users.filter_one(
Users.password_token == data.password_token
).data:
found_user.create_password(password=data.password)
found_user.password_token = None
Users.save()
found_user.create_password(found_user=found_user, password=data.password)
found_user.password_token = ""
found_user.save()
send_email_completed = send_email(
subject=f"Dear {found_user.user_tag}, your password has been changed.",
receivers=[str(found_user.email)],