瀏覽代碼

fix password update in AuthsTable model

Peter De-Ath 10 月之前
父節點
當前提交
1bb2724282
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      backend/apps/webui/models/auths.py

+ 1 - 0
backend/apps/webui/models/auths.py

@@ -173,6 +173,7 @@ class AuthsTable:
                 result = (
                 result = (
                     db.query(Auth).filter_by(id=id).update({"password": new_password})
                     db.query(Auth).filter_by(id=id).update({"password": new_password})
                 )
                 )
+                db.commit()
                 return True if result == 1 else False
                 return True if result == 1 else False
         except:
         except:
             return False
             return False