mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
fix password update in AuthsTable model
This commit is contained in:
parent
f971ba0c0b
commit
1bb2724282
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue