"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "220530c450b7ecdfe293e1a3a42a1650874bf2c6"
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: ...@@ -173,6 +173,7 @@ class AuthsTable:
result = ( result = (
db.query(Auth).filter_by(id=id).update({"password": new_password}) db.query(Auth).filter_by(id=id).update({"password": new_password})
) )
db.commit()
return True if result == 1 else False 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