Skip to content
Snippets Groups Projects
Commit 7ccd05f9 authored by srosse's avatar srosse
Browse files

OO-766: don't set a 503 error as a response if the login are blocked

parent a4cf2fdd
No related branches found
No related tags found
No related merge requests found
...@@ -336,8 +336,7 @@ public class LoginAuthprovidersController extends MainLayoutBasicController impl ...@@ -336,8 +336,7 @@ public class LoginAuthprovidersController extends MainLayoutBasicController impl
if (loginStatus == AuthHelper.LOGIN_OK) { if (loginStatus == AuthHelper.LOGIN_OK) {
return; return;
} else if (loginStatus == AuthHelper.LOGIN_NOTAVAILABLE){ } else if (loginStatus == AuthHelper.LOGIN_NOTAVAILABLE){
//getWindowControl().setError(translate("login.notavailable", OLATContext.getSupportaddress())); DispatcherAction.redirectToDefaultDispatcher(ureq.getHttpResp());
DispatcherAction.redirectToServiceNotAvailable( ureq.getHttpResp() );
} else { } else {
// fxdiff: show useradmin-mail for pw-requests // fxdiff: show useradmin-mail for pw-requests
getWindowControl().setError(translate("login.error", WebappHelper.getMailConfig("mailReplyTo"))); getWindowControl().setError(translate("login.error", WebappHelper.getMailConfig("mailReplyTo")));
......
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