mirror of
https://github.com/tildeclub/site.git
synced 2026-11-06 21:15:38 +00:00
32 char usernames
This commit is contained in:
1 parent
9afc11ccb5
commit
9b917aa5ad
3 files changed
+6
-8
No files matched your search
@@ -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