mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
Merge pull request #3699 from Peter-De-Ath/fix-update-user-email-auth
fix auth update_email_by_id - add db.commit
This commit is contained in:
commit
a7fb560e84
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
@ -182,6 +183,7 @@ class AuthsTable:
|
|||
with get_db() as db:
|
||||
|
||||
result = db.query(Auth).filter_by(id=id).update({"email": email})
|
||||
db.commit()
|
||||
return True if result == 1 else False
|
||||
except:
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in a new issue