alchemy flush and save functions updated
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user