mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Increase max password length from 32 to 100
This commit is contained in:
parent
496f71a4be
commit
601c2fcc71
@ -29,8 +29,8 @@ if (empty($_POST) === false) {
|
||||
$errors[] = 'Your new passwords do not match.';
|
||||
} else if (strlen($_POST['new_password']) < 6) {
|
||||
$errors[] = 'Your new passwords must be at least 6 characters.';
|
||||
} else if (strlen($_POST['new_password']) > 32) {
|
||||
$errors[] = 'Your new passwords must be less than 33 characters.';
|
||||
} else if (strlen($_POST['new_password']) > 100) {
|
||||
$errors[] = 'Your new passwords must be less than 100 characters.';
|
||||
}
|
||||
} else {
|
||||
$errors[] = 'Your current password is incorrect.';
|
||||
|
@ -57,8 +57,8 @@ if (empty($_POST) === false) {
|
||||
if (strlen($_POST['password']) < 6) {
|
||||
$errors[] = 'Your password must be at least 6 characters.';
|
||||
}
|
||||
if (strlen($_POST['password']) > 33) {
|
||||
$errors[] = 'Your password must be less than 33 characters.';
|
||||
if (strlen($_POST['password']) > 100) {
|
||||
$errors[] = 'Your password must be less than 100 characters.';
|
||||
}
|
||||
if ($_POST['password'] !== $_POST['password_again']) {
|
||||
$errors[] = 'Your passwords do not match.';
|
||||
|
Loading…
x
Reference in New Issue
Block a user