KEYCLOAK-9838 Trim username in admin welcome page
This commit is contained in:
parent
3cc405b1c5
commit
8d42c9193b
1 changed files with 4 additions and 0 deletions
|
@ -119,6 +119,10 @@ public class WelcomeResource {
|
|||
String password = formData.getFirst("password");
|
||||
String passwordConfirmation = formData.getFirst("passwordConfirmation");
|
||||
|
||||
if (username != null) {
|
||||
username = username.trim();
|
||||
}
|
||||
|
||||
if (username == null || username.length() == 0) {
|
||||
return createWelcomePage(null, "Username is missing");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue