Skip to content

users: Fix checking restricted usernames

Created by: SunilMohanAdapa

When editing an existing user, error is being thrown due to restricted usernames check. This is due to the username matching existing username.

Also:

  • Raise the validation error on the field instead of the entire form.
  • Send error code along with validation error message.
  • End the validation error message with a full stop for consistency.

Merge request reports

Loading