#601 bug: username is case sensitive, but email in general is not

Opted for completing remove support for uppercase letters in username
this way we never come across issued with casing in WebGoat
This commit is contained in:
Nanne Baars 2019-07-28 20:48:20 +02:00
parent d2e23f6b8e
commit e61c943f97

View File

@ -17,7 +17,7 @@ public class UserForm {
@NotNull
@Size(min=6, max=20)
@Pattern(regexp = "[a-zA-Z0-9-]*", message = "can only contain letters, digits, and -")
@Pattern(regexp = "[a-z0-9-]*", message = "can only contain lowercase letters, digits, and -")
private String username;
@NotNull
@Size(min=6, max=10)