Skip to content
Snippets Groups Projects
Commit b92ff43d authored by gnaegi's avatar gnaegi
Browse files

OO-267 search for OLAT provider before activating controller to support LDAP/OLAT setup

parent cbf5de11
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,16 @@ public class LoginAuthprovidersController extends MainLayoutBasicController impl
} else if ("about".equals(type)) {
showAboutPage(ureq);
olatMenuTree.setSelectedNodeId(aboutNode.getIdent());
} else if ("registration".equals(type)) {
// make sure the OLAT authentication controller is activated as only this one can handle registration requests
AuthenticationProvider OLATProvider = LoginModule.getAuthenticationProvider(BaseSecurityModule.getDefaultAuthProviderIdentifier());
if (OLATProvider.isEnabled()) {
initLoginContent(ureq, BaseSecurityModule.getDefaultAuthProviderIdentifier());
if(authController instanceof Activateable2) {
((Activateable2)authController).activate(ureq, entries, state);
}
}
// don't know what to do when the OLAT provider is not enabled
} else if(authController instanceof Activateable2) {
((Activateable2)authController).activate(ureq, entries, state);
}
......
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