Fix username check
This commit is contained in:
@@ -204,7 +204,7 @@
|
|||||||
if (!empty($_POST['newuser'])): // NEW USER SAML
|
if (!empty($_POST['newuser'])): // NEW USER SAML
|
||||||
$email = filter_var($_POST['email'], FILTER_VALIDATE_EMAIL);
|
$email = filter_var($_POST['email'], FILTER_VALIDATE_EMAIL);
|
||||||
if (!$email): $errors['email'] = $transLang['EMAIL_NOTVALID']; endif;
|
if (!$email): $errors['email'] = $transLang['EMAIL_NOTVALID']; endif;
|
||||||
$existing = $Users->checkUser($email);
|
$existing = $Users->checkSAMLUser($email);
|
||||||
if ($existing):
|
if ($existing):
|
||||||
if ($existing[0]["users_email"] == $email): $errors['email'] = $transLang['PASSWORD_USED']; endif;
|
if ($existing[0]["users_email"] == $email): $errors['email'] = $transLang['PASSWORD_USED']; endif;
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
Reference in New Issue
Block a user