From ce4a1a8df5b68922fa13a7ce323ec6d8e23bfd5e Mon Sep 17 00:00:00 2001 From: terrtia Date: Tue, 3 Sep 2024 15:53:05 +0200 Subject: [PATCH] fix: [user] fix users self password change --- var/www/blueprints/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/www/blueprints/root.py b/var/www/blueprints/root.py index 65309f38..643fd0e4 100644 --- a/var/www/blueprints/root.py +++ b/var/www/blueprints/root.py @@ -276,7 +276,7 @@ def change_password(): if check_password_strength(password1): user_id = current_user.get_user_id() res = api_change_user_self_password(user_id, password1) - if res != 200: + if res[1] != 200: return create_json_response(res[0], res[1]) access_logger.info(f'Password change', extra={'user_id': user_id, 'ip_address': request.remote_addr}) # update Note