This commit is contained in:
Joe Mattos 2021-08-20 00:36:11 -07:00 committed by GitHub
commit 2660db7baf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,6 +81,11 @@ if (!empty($_POST['save'])) {
header('location: /login/'); header('location: /login/');
exit(); exit();
} }
// Check password length
if ((!empty($_POST['v_password'])) && (strlen($_POST['v_password']) < 6) && (empty($_SESSION['error_msg']))) {
$_SESSION['error_msg'] = __('Password is too short.');
}
// Change password // Change password
if ((!empty($_POST['v_password'])) && (empty($_SESSION['error_msg']))) { if ((!empty($_POST['v_password'])) && (empty($_SESSION['error_msg']))) {