Skip to content
Snippets Groups Projects
Commit 43d2ddaa authored by srosse's avatar srosse
Browse files

OO-3187: reverse the check by allowed email in the creation processs of LDAP users

parent da199562
No related branches found
No related tags found
No related merge requests found
...@@ -535,7 +535,7 @@ public class LDAPLoginManagerImpl implements LDAPLoginManager, GenericEventListe ...@@ -535,7 +535,7 @@ public class LDAPLoginManagerImpl implements LDAPLoginManager, GenericEventListe
log.error("Cannot try to lookup user " + uid + " by email with an invalid email::" + email, null); log.error("Cannot try to lookup user " + uid + " by email with an invalid email::" + email, null);
return null; return null;
} }
if (userManager.isEmailAllowed(email) ) { if (!userManager.isEmailAllowed(email)) {
log.error("Can't create user with email='" + email + "', a user with that email does already exist in OLAT database", null); log.error("Can't create user with email='" + email + "', a user with that email does already exist in OLAT database", null);
return null; return null;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment