"git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "715b1899ed1a3caa29426a1c2e68a236bec87088"
Commit d5bc54b8 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: update password

parent 500f61b7
...@@ -118,8 +118,8 @@ class AuthsTable: ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment