mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Removed useless email empty check in register.php (#647)
This commit is contained in:
parent
4d812bb1fc
commit
c9d0a06fbc
1 changed files with 0 additions and 4 deletions
|
@ -233,16 +233,12 @@ foreach ($profile_fields as $field => $can_edit) {
|
|||
$email = !empty($_POST['user_email']) ? (string)$_POST['user_email'] : $pr_data['user_email'];
|
||||
if ($submit) {
|
||||
if ($mode == 'register') {
|
||||
if (empty($email)) {
|
||||
$errors[] = $lang['CHOOSE_E_MAIL'];
|
||||
}
|
||||
if (!$errors and $err = \TorrentPier\Validate::email($email)) {
|
||||
$errors[] = $err;
|
||||
}
|
||||
$db_data['user_email'] = $email;
|
||||
} elseif ($email != $pr_data['user_email']) {
|
||||
// если смена мейла юзером
|
||||
|
||||
if (!$cur_pass_valid) {
|
||||
$errors[] = $lang['CONFIRM_PASSWORD_EXPLAIN'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue