Fix password form regexes
parent
3d0c156cb3
commit
5d0a79f20f
|
@ -7,9 +7,9 @@
|
||||||
|
|
||||||
include 'app/FormValidator.php';
|
include 'app/FormValidator.php';
|
||||||
$validator = new FormValidator(array(
|
$validator = new FormValidator(array(
|
||||||
'oldPassword' => array('required' => true, 'regex' => '.{1,1000}'),
|
'oldPassword' => array('required' => true, 'regex' => '/.{1,1000}/'),
|
||||||
'newPassword' => array('required' => true, 'regex' => '.{1,1000}'),
|
'newPassword' => array('required' => true, 'regex' => '/.{1,1000}/'),
|
||||||
'newPasswordRepeat' => array('required' => true, 'regex' => '.{1,1000}')
|
'newPasswordRepeat' => array('required' => true, 'regex' => '/.{1,1000}/')
|
||||||
));
|
));
|
||||||
|
|
||||||
if($validator->isValid($_POST)) {
|
if($validator->isValid($_POST)) {
|
||||||
|
|
Loading…
Reference in New Issue