|
|
|
@ -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;
|
|
|
|
|