mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-07-31 03:51:12 -07:00
password length verification
This commit is contained in:
parent
b82899e557
commit
878d239538
7 changed files with 31 additions and 0 deletions
|
@ -49,6 +49,11 @@ if (!empty($_POST['ok'])) {
|
|||
$v_charset = $_POST['v_charset'];
|
||||
$v_db_email = $_POST['v_db_email'];
|
||||
|
||||
// Check password length
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
$pw_len = strlen($_POST['v_password']);
|
||||
if ($pw_len < 6 ) $_SESSION['error_msg'] = _('Password is too short.',$error_msg);
|
||||
}
|
||||
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
// Add Database
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue