mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 09:09:53 +00:00
fix email update in AuthsTable model
This commit is contained in:
parent
d51e866505
commit
f971ba0c0b
@ -182,6 +182,7 @@ class AuthsTable:
|
|||||||
with get_db() as db:
|
with get_db() as db:
|
||||||
|
|
||||||
result = db.query(Auth).filter_by(id=id).update({"email": email})
|
result = db.query(Auth).filter_by(id=id).update({"email": email})
|
||||||
|
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 New Issue
Block a user