Displaying SSO auth failure messages

4.x.x
Rasika Perera 8 years ago
parent 9fd6145605
commit c284732192

@ -1,6 +1,7 @@
function onRequest(context) {
var authModuleConfigs = context.app.conf["authModule"];
var sessionDataKey = request.getParameter("sessionDataKey");
var authFailure = request.getParameter("authFailure");
//if sso enabled and sessionDataKey is empty redirect
var ssoConfigs = authModuleConfigs["sso"];
@ -21,6 +22,10 @@ function onRequest(context) {
loginActionUrl = "/commonauth";
}
if(authFailure){
viewModel.message = "Login failed! Please recheck the username and password and try again.";
}
viewModel.sessionDataKey = sessionDataKey;
viewModel.loginActionUrl = loginActionUrl;
return viewModel;

Loading…
Cancel
Save