Fix user name regex
parent
390aa89d9f
commit
c49a52e116
|
@ -8,7 +8,7 @@
|
||||||
if(isset($_POST['login']))
|
if(isset($_POST['login']))
|
||||||
{
|
{
|
||||||
$validator = new FormValidator(array(
|
$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}')
|
'password' => array('required' => true, 'regex' => '.{1,1000}')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue