We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit b5287682 authored by jurgbohn's avatar jurgbohn

Changed username limit to 16 chars

parent d3e57c4d
...@@ -46,8 +46,8 @@ if(isset($_POST['register'])) { ...@@ -46,8 +46,8 @@ if(isset($_POST['register'])) {
//Basic validation //Basic validation
if(!preg_match("/^[a-zA-Z0-9_]{3,}$/", $username)) { if(!preg_match("/^[a-zA-Z0-9_]{3,16}$/", $username)) {
$errors .= "Your username must be atleast 3 character in length and only consist of <i>a-z, A-Z, 0-9</i> and _ (underscore).<br />"; $errors .= "Your username must be atleast 3 characters in length (max 16) and only consist of <i>a-z, A-Z, 0-9</i> and _ (underscore).<br />";
} }
if(empty($password)) { if(empty($password)) {
$errors .= "You must enter a password.<br />"; $errors .= "You must enter a password.<br />";
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
<label for='fullname'>You:<span>(that's your real name.)</span></label> <label for='fullname'>You:<span>(that's your real name.)</span></label>
<input id='fullname' name='fullname' type='text' value='{$fullname}' maxlength='255'/> <input id='fullname' name='fullname' type='text' value='{$fullname}' maxlength='255'/>
<label for='username'>Your nickname:<span>(no more than 64 chars.)</span></label> <label for='username'>Your nickname:<span>(no more than 16 chars.)</span></label>
<input id='username' name='username' type='text' value='{$username}' maxlength='64' /> <input id='username' name='username' type='text' value='{$username}' maxlength='16' />
<label for='email'>Your e-mail:<span>(must be valid!)</span></label> <label for='email'>Your e-mail:<span>(must be valid!)</span></label>
<input id='email' name='email' type='text' value='{$email}' maxlength='64' /> <input id='email' name='email' type='text' value='{$email}' maxlength='64' />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment