Increase max password length from 32 to 100

This commit is contained in:
Mark Samman 2014-10-29 19:50:36 +01:00
parent 496f71a4be
commit 601c2fcc71
2 changed files with 4 additions and 4 deletions

View File

@ -29,8 +29,8 @@ if (empty($_POST) === false) {
$errors[] = 'Your new passwords do not match.'; $errors[] = 'Your new passwords do not match.';
} else if (strlen($_POST['new_password']) < 6) { } else if (strlen($_POST['new_password']) < 6) {
$errors[] = 'Your new passwords must be at least 6 characters.'; $errors[] = 'Your new passwords must be at least 6 characters.';
} else if (strlen($_POST['new_password']) > 32) { } else if (strlen($_POST['new_password']) > 100) {
$errors[] = 'Your new passwords must be less than 33 characters.'; $errors[] = 'Your new passwords must be less than 100 characters.';
} }
} else { } else {
$errors[] = 'Your current password is incorrect.'; $errors[] = 'Your current password is incorrect.';

View File

@ -57,8 +57,8 @@ if (empty($_POST) === false) {
if (strlen($_POST['password']) < 6) { if (strlen($_POST['password']) < 6) {
$errors[] = 'Your password must be at least 6 characters.'; $errors[] = 'Your password must be at least 6 characters.';
} }
if (strlen($_POST['password']) > 33) { if (strlen($_POST['password']) > 100) {
$errors[] = 'Your password must be less than 33 characters.'; $errors[] = 'Your password must be less than 100 characters.';
} }
if ($_POST['password'] !== $_POST['password_again']) { if ($_POST['password'] !== $_POST['password_again']) {
$errors[] = 'Your passwords do not match.'; $errors[] = 'Your passwords do not match.';