Explorar o código

fix password update in AuthsTable model

Peter De-Ath hai 10 meses
pai
achega
1bb2724282
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      backend/apps/webui/models/auths.py

+ 1 - 0
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