fix: [user] fix users self password change

otp
terrtia 2024-09-03 15:53:05 +02:00
parent 496d19aa19
commit ce4a1a8df5
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ def change_password():
if check_password_strength(password1): if check_password_strength(password1):
user_id = current_user.get_user_id() user_id = current_user.get_user_id()
res = api_change_user_self_password(user_id, password1) res = api_change_user_self_password(user_id, password1)
if res != 200: if res[1] != 200:
return create_json_response(res[0], res[1]) return create_json_response(res[0], res[1])
access_logger.info(f'Password change', extra={'user_id': user_id, 'ip_address': request.remote_addr}) access_logger.info(f'Password change', extra={'user_id': user_id, 'ip_address': request.remote_addr})
# update Note # update Note