diff --git a/signup/signup-handler.php b/signup/signup-handler.php
index 6ed64c6..80ebfe4 100644
--- a/signup/signup-handler.php
+++ b/signup/signup-handler.php
@@ -67,7 +67,7 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
$message .= "
please fill in your desired username";
if (strlen($name) > 32)
$message .= "username too long (32 character max)";
- if (!preg_match('/^[A-Za-z][A-Za-z0-9]{2,31}$/', $name))
+ if (!preg_match('/^[a-z][a-z0-9]{2,31}$/', $name))
$message .= "username contains invalid characters (lowercase only, must start with a letter)";
if (posix_getpwnam($name) || forbidden_name($name))
$message .= "sorry, the username $name is unavailable";
@@ -97,12 +97,12 @@ reason: {$_REQUEST["interest"]}
ssh key:
{$_REQUEST["sshkey"]}
-sudo makeuser {$_REQUEST["username"]} {$_REQUEST["email"]} \"{$_REQUEST["sshkey"]}\"
+makeuser {$_REQUEST["username"]} {$_REQUEST["email"]} \"{$_REQUEST["sshkey"]}\"
";
if (mail('sudoers', 'new tilde.team signup', $msgbody)) {
echo '';
} else {
echo '
@@ -120,3 +120,4 @@ sudo makeuser {$_REQUEST["username"]} {$_REQUEST["email"]} \"{$_REQUEST["sshkey"
}
}
?>
+