fix: update password

This commit is contained in:
Timothy J. Baek 2023-12-29 00:31:23 -08:00
parent 500f61b7ee
commit d5bc54b8f8
1 changed files with 2 additions and 2 deletions

View File

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