Usernames can't start with numbers

This commit is contained in:
Moxie Marlinspike
2019-10-28 12:51:19 -07:00
parent 523134f24b
commit 2b987e6e93
2 changed files with 13 additions and 1 deletions

View File

@@ -540,7 +540,7 @@ public class AccountController {
username = username.toLowerCase();
if (!username.matches("^[a-z0-9_]+$")) {
if (!username.matches("^[a-z_][a-z0-9_]+$")) {
return Response.status(Response.Status.BAD_REQUEST).build();
}