fix: update password

This commit is contained in:
Timothy J. Baek 2023-12-29 00:31:23 -08:00
parent 500f61b7ee
commit d5bc54b8f8

View file

@ -118,8 +118,8 @@ class AuthsTable:
try: try:
query = Auth.update(password=new_password).where(Auth.id == id) query = Auth.update(password=new_password).where(Auth.id == id)
result = query.execute() result = query.execute()
print(result)
return True return True if result == 1 else False
except: except:
return False return False