From 1bb2724282b69ed9f03e7182f3e1a8a79ee20c18 Mon Sep 17 00:00:00 2001 From: Peter De-Ath Date: Sun, 7 Jul 2024 22:27:26 +0100 Subject: [PATCH] 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