Skip to content
Snippets Groups Projects
Commit 280b47f9 authored by srosse's avatar srosse
Browse files

OO-1353: replace deprecated method

parent 01435ba8
No related branches found
No related tags found
No related merge requests found
......@@ -331,7 +331,11 @@ public class ShibbolethRegistrationController extends DefaultController implemen
email = ShibbolethHelper.getFirstValueOf(ShibbolethModule.getEMail(), shibbolethAttributesMap);
}
User user = UserManager.getInstance().findUserByEmail(email);
User user = null;
Identity id = UserManager.getInstance().findIdentityByEmail(email);
if (id != null) {
user = id.getUser();
}
if (user != null) {
// error, email already exists. should actually not happen if OLAT Authenticator has
......
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