mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
FIxes #1781 - removed unnecessary email check and corrected LAN
This commit is contained in:
13
signup.php
13
signup.php
@@ -204,11 +204,11 @@ class signup
|
||||
// 'resend_newemail' - corrected email address
|
||||
// 'resend_password' - password (required if changing email address)
|
||||
|
||||
$clean_email = $tp->toDB($_POST['resend_email']);
|
||||
if(!check_email($clean_email))
|
||||
$clean_email = $tp->toDB($_POST['resend_email']); // may also be username
|
||||
/*if(!check_email($clean_email))
|
||||
{
|
||||
$clean_email = "xxx";
|
||||
}
|
||||
}*/
|
||||
|
||||
$new_email = $tp->toDB(varset($_POST['resend_newemail'], ''));
|
||||
if(!check_email($new_email ))
|
||||
@@ -290,7 +290,7 @@ class signup
|
||||
|
||||
if(!$result)
|
||||
{
|
||||
e107::getMessage()->setTitle(LAN_SIGNUP_43,E_MESSAGE_ERROR)->addError(LAN_SIGNUP_42);
|
||||
e107::getMessage()->setTitle(LAN_ERROR,E_MESSAGE_ERROR)->addError(LAN_SIGNUP_42);
|
||||
$ns->tablerender(null, e107::getMessage()->render());
|
||||
$do_log['signup_result'] = LAN_SIGNUP_62;
|
||||
}
|
||||
@@ -1107,7 +1107,4 @@ function headerjs()
|
||||
//global $cal; // XXX - can this be removed completely?
|
||||
//$script_txt .= $cal->load_files();
|
||||
return $script_txt;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
}
|
Reference in New Issue
Block a user