Skip to content

Resolve "catch entering username as an email instead of returning a 500 error"

What does this MR do?

When creating a new User from the admin panel, if the username contains spaces then a 500 error is shown; this is due to the fact that reset_runners_minutes_admin_user_path(@user) leads to an error @user.to_param => 'username' has spaces.

Since we already hide this partial on the new user page the solution implemented hides the partial if the user is not persisted?

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #7047 (closed)

Edited by 🙈 jacopo beschi 🙉

Merge request reports