Просмотр исходного кода

fix password update in AuthsTable model

Peter De-Ath 10 месяцев назад
Родитель
Сommit
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 = (
                     db.query(Auth).filter_by(id=id).update({"password": new_password})
                 )
+                db.commit()
                 return True if result == 1 else False
         except:
             return False