diff options
-rw-r--r-- | application/controllers/user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php index 06ecc50dd..94791a5c0 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -137,7 +137,7 @@ class User extends CI_Controller { $password = $this->input->post("password"); $password_confirm = $this->input->post("password_confirm"); - if (!$username || !preg_match("/^[a-z0-9]+$/", $username)) { + if (!$username || strlen($username) > 32 || !preg_match("/^[a-z0-9]+$/", $username)) { $error[]= "Invalid username (only a-z0-9 are allowed)."; } |