From f971ba0c0b8b6b4a476e657c25f30b3775594461 Mon Sep 17 00:00:00 2001 From: Peter De-Ath Date: Sun, 7 Jul 2024 22:07:12 +0100 Subject: [PATCH 1/2] fix email update in AuthsTable model --- backend/apps/webui/models/auths.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/apps/webui/models/auths.py b/backend/apps/webui/models/auths.py index 9f6bd59e8..353dc854d 100644 --- a/backend/apps/webui/models/auths.py +++ b/backend/apps/webui/models/auths.py @@ -182,6 +182,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 From 1bb2724282b69ed9f03e7182f3e1a8a79ee20c18 Mon Sep 17 00:00:00 2001 From: Peter De-Ath Date: Sun, 7 Jul 2024 22:27:26 +0100 Subject: [PATCH 2/2] fix password update in AuthsTable model --- backend/apps/webui/models/auths.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/apps/webui/models/auths.py b/backend/apps/webui/models/auths.py index 353dc854d..616eb70f4 100644 --- a/backend/apps/webui/models/auths.py +++ b/backend/apps/webui/models/auths.py @@ -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