瀏覽代碼

fix: update password

Timothy J. Baek 1 年之前
父節點
當前提交
d5bc54b8f8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      backend/apps/web/models/auths.py

+ 2 - 2
backend/apps/web/models/auths.py

@@ -118,8 +118,8 @@ class AuthsTable:
         try:
         try:
             query = Auth.update(password=new_password).where(Auth.id == id)
             query = Auth.update(password=new_password).where(Auth.id == id)
             result = query.execute()
             result = query.execute()
-            print(result)
-            return True
+
+            return True if result == 1 else False
         except:
         except:
             return False
             return False