mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 13:46:47 +00:00
Usernames can't start with numbers
This commit is contained in:
1 parent
523134f24b
commit
2b987e6e93
2 files changed
+13
-1
No files matched your search
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user