fix password update in AuthsTable model

This commit is contained in:
Peter De-Ath 2024-07-07 22:27:26 +01:00
parent f971ba0c0b
commit 1bb2724282

View File

@ -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