Browse Source

fix: update password

Timothy J. Baek 1 năm trước cách đây
mục cha
commit
d5bc54b8f8
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      backend/apps/web/models/auths.py

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

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