mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
fix email update in AuthsTable model
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user