mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Merge pull request #405 from janabimustafa/master
made email a requirement for ssl generation
This commit is contained in:
commit
2e67a9d0ea
2 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,11 @@ if (!empty($_POST['ok'])) {
|
|||
$pw_len = strlen($_POST['v_password']);
|
||||
if ($pw_len < 6 ) $_SESSION['error_msg'] = __('Password is too short.',$error_msg);
|
||||
}
|
||||
// Check username length
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
$username_len = strlen($_POST['v_username']);
|
||||
if ($username_len > 12) $_SESSION['error_msg'] = __('Username is too long. Maximum 12 characters', $error_msg);
|
||||
}
|
||||
|
||||
// Protect input
|
||||
$v_username = escapeshellarg($_POST['v_username']);
|
||||
|
|
|
@ -40,6 +40,7 @@ if (empty($_POST['v_country'])) $errors[] = __('country');
|
|||
if (empty($_POST['v_state'])) $errors[] = __('domain');
|
||||
if (empty($_POST['v_locality'])) $errors[] = __('city');
|
||||
if (empty($_POST['v_org'])) $errors[] = __('organization');
|
||||
if (empty($_POST['v_email'])) $errors[] = __('email');
|
||||
$v_domain = $_POST['v_domain'];
|
||||
$v_email = $_POST['v_email'];
|
||||
$v_country = $_POST['v_country'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue