mirror of
https://github.com/tildeclub/site.git
synced 2026-01-23 21:40:18 +00:00
32 char usernames
This commit is contained in:
@@ -68,7 +68,7 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
|
||||
if (strlen($name) > 32)
|
||||
$message .= "<li>username too long (32 character max)</li>";
|
||||
|
||||
if (!preg_match('/^[a-z][a-z0-9]{1,30}$/', $name))
|
||||
if (!preg_match('/^[a-z][a-z0-9]{1,31}$/', $name))
|
||||
$message .= "<li>username contains invalid characters (lowercase only, must start with a letter)</li>";
|
||||
|
||||
if ($_REQUEST["sshkey"] == "" || mb_substr($_REQUEST["sshkey"], 0, 4) !== "ssh-")
|
||||
|
||||
Reference in New Issue
Block a user