Pārlūkot izejas kodu

fix: update password

Timothy J. Baek 1 gadu atpakaļ
vecāks
revīzija
d5bc54b8f8
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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