Skip to content

Commit

Permalink
fixed new user send mail bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinDo committed Oct 15, 2024
1 parent eb1c846 commit 49999f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend_celery/webapp/auth/auth_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def register():
resp = auth_functions.grant_roles(kc_user_id, selected_roles, roles)
if resp.status_code == 204: # grant roles was successful
flash("New user created successfully!", 'alert-success')
task = tasks.apply_async(args=[first_name + ' ' + last_name, email, username, password])
task = tasks.notify_new_user.apply_async(args=[first_name + ' ' + last_name, email, username, password])
return redirect(url_for('auth.register'))

flash(resp.json(), 'alert-danger')
Expand Down

0 comments on commit 49999f6

Please sign in to comment.