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