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
if (loginStatus == AuthHelper.LOGIN_OK) {
return;
} else if (loginStatus == AuthHelper.LOGIN_NOTAVAILABLE){
//getWindowControl().setError(translate("login.notavailable", OLATContext.getSupportaddress()));
DispatcherAction.redirectToServiceNotAvailable( ureq.getHttpResp() );
DispatcherAction.redirectToDefaultDispatcher(ureq.getHttpResp());
} else {
// fxdiff: show useradmin-mail for pw-requests
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