Fix username check

This commit is contained in:
Josh North 2021-05-07 14:37:38 -04:00
parent 337efaf2a6
commit bb9bdd7056

View File

@ -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;