1
0
Fork 0

Fix password form regexes

master
Anonymous Contributor 2023-08-23 18:16:35 +02:00
parent 3d0c156cb3
commit 5d0a79f20f
1 changed files with 3 additions and 3 deletions

View File

@ -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)) {