Set password limit to 29 characters (#456)

* Set password limit 29
This commit is contained in:
slawkens 2021-01-06 22:50:09 +01:00 committed by GitHub
parent a75e2c015e
commit fd3c6cb939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,8 +65,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']) > 100) { if (strlen($_POST['password']) > 29) {
$errors[] = 'Your password must be less than 100 characters.'; $errors[] = 'Your password must be less than 30 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.';