mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 14:24:07 -07:00
Merge f0b4a3b1c1
into 6225820910
This commit is contained in:
commit
2660db7baf
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