mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 06:14:19 -07:00
Add password length when editting user
https://bugs.vestacp.com/issues/652
This commit is contained in:
parent
41d698b2ce
commit
f0b4a3b1c1
1 changed files with 5 additions and 0 deletions
|
@ -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']))) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue