Commit 2c5bf6b1 authored by chealer's avatar chealer

[FIX] Registration: special handling for email registration errors (condition...

[FIX] Registration: special handling for email registration errors (condition would never be true from r27609)
on behalf of Niclone. spotted by Sp4rKy
parent 12f522f7
......@@ -61,7 +61,7 @@ if (isset($_REQUEST['register'])) {
$result=$registrationlib->register_new_user($_REQUEST);
if (is_a($result,"RegistrationError")) {
if ($result->field == 'email' && $result->field == 'email_not_valid') // i'm not sure why email is a special case..
if ($result->field == 'email') // i'm not sure why email is a special case..
$email_valid='n';
else
register_error($result->msg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment