diff --git a/src/main/java/org/olat/login/LoginAuthprovidersController.java b/src/main/java/org/olat/login/LoginAuthprovidersController.java index 7906c25d11f82f0ab27eb0328f13c2058b368130..c978897f301b347a279512ac0d5b6306b22fa9af 100644 --- a/src/main/java/org/olat/login/LoginAuthprovidersController.java +++ b/src/main/java/org/olat/login/LoginAuthprovidersController.java @@ -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); }