From d5bc54b8f8561cbab40b4e5c759a8a006df669e6 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 29 Dec 2023 00:31:23 -0800 Subject: [PATCH] fix: update password --- backend/apps/web/models/auths.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/apps/web/models/auths.py b/backend/apps/web/models/auths.py index 0f96f096..800750c3 100644 --- a/backend/apps/web/models/auths.py +++ b/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