Skip to content

Commit

Permalink
[FIX] Update of user password
Browse files Browse the repository at this point in the history
  • Loading branch information
whikernel committed Jul 31, 2024
1 parent 86e24fd commit a310f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/app/blueprints/profile/profile_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def update_pwd_modal(caseid, url_redir):

@profile_blueprint.route('/user/update', methods=['POST'])
@ac_api_requires()
def update_user_view(caseid):
def update_user_view():
try:
user = get_user(current_user.id)
if not user:
Expand All @@ -140,7 +140,7 @@ def update_user_view(caseid):
db.session.commit()

if cuser:
track_activity("user {} updated itself".format(user.user), caseid=caseid)
track_activity("user {} updated itself".format(user.user))
return response_success("User updated", data=user_schema.dump(user))

return response_error("Unable to update user for internal reasons")
Expand Down

0 comments on commit a310f10

Please sign in to comment.