alchemy flush and save functions updated

This commit is contained in:
2024-11-11 18:58:28 +03:00
parent 1f1222c32d
commit f6135ced5f
6 changed files with 4 additions and 14 deletions

View File

@@ -161,9 +161,8 @@ class AuthModule(PasswordModule):
found_user.password_expiry_begins = str(system_arrow.now())
found_user.hash_password = new_password_dict.get("password")
found_user.password_token = "" if found_user.password_token else ""
found_user.save()
query_engine.refresh_password_history_via_user(payload=history_dict)
return
return found_user.save()
@staticmethod
def reset_password_token(found_user):