Commit 1bb27242 authored by Peter De-Ath's avatar Peter De-Ath
Browse files

fix password update in AuthsTable model

parent f971ba0c
......@@ -173,6 +173,7 @@ class AuthsTable:
result = (
db.query(Auth).filter_by(id=id).update({"password": new_password})
)
db.commit()
return True if result == 1 else False
except:
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