password length verification

This commit is contained in:
Serghey Rodin 2013-03-31 19:19:59 +03:00
parent b82899e557
commit 878d239538
7 changed files with 31 additions and 0 deletions

View file

@ -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