mirror of
https://github.com/open-webui/open-webui
synced 2024-11-29 15:33:42 +00:00
fix: update password
This commit is contained in:
parent
500f61b7ee
commit
d5bc54b8f8
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user