Commit f23dbfd6 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '45575-invalid-characters-signup' into 'master'

Resolve "Bug: When creating an account with invalid characters the error is "Username already taken" not "Invalid characters used""

Closes #45575

See merge request gitlab-org/gitlab-ce!19610
parents 115ab79b 5e2b8ab8
......@@ -62,13 +62,13 @@ export default class UsernameValidator {
return this.setPendingState();
}
if (!this.state.available) {
return this.setUnavailableState();
}
if (!this.state.valid) {
return this.setInvalidState();
}
if (!this.state.available) {
return this.setUnavailableState();
}
}
interceptInvalid(event) {
......@@ -89,7 +89,6 @@ export default class UsernameValidator {
setAvailabilityState(usernameTaken) {
if (usernameTaken) {
this.state.valid = false;
this.state.available = false;
} else {
this.state.available = true;
......
---
title: 'Fix username validation order on signup, resolves #45575'
merge_request: 19610
author: Jan Beckmann
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment