diff --git a/pages/login.php b/pages/login.php index a78ce1a..6f68535 100644 --- a/pages/login.php +++ b/pages/login.php @@ -8,7 +8,7 @@ if(isset($_POST['login'])) { $validator = new FormValidator(array( - 'username' => array('required' => true, 'regex' => '([^\\\/<>\s]+ [^\\\/<>\s]+){3,255}'), + 'username' => array('required' => true, 'regex' => '[^\\\/<>\s]{1,64} [^\\\/<>\s]{1,64}'), 'password' => array('required' => true, 'regex' => '.{1,1000}') ));