|
|
@ -1,5 +1,4 @@
|
|
|
|
function onRequest(context) {
|
|
|
|
function onRequest(context) {
|
|
|
|
var devicemgtProps = require("/app/modules/conf-reader/main.js")["conf"];
|
|
|
|
|
|
|
|
var authModuleConfigs = context.app.conf["authModule"];
|
|
|
|
var authModuleConfigs = context.app.conf["authModule"];
|
|
|
|
var sessionDataKey = request.getParameter("sessionDataKey");
|
|
|
|
var sessionDataKey = request.getParameter("sessionDataKey");
|
|
|
|
|
|
|
|
|
|
|
@ -19,7 +18,7 @@ function onRequest(context) {
|
|
|
|
var viewModel = {};
|
|
|
|
var viewModel = {};
|
|
|
|
var loginActionUrl = context.app.context + "/uuf/login";
|
|
|
|
var loginActionUrl = context.app.context + "/uuf/login";
|
|
|
|
if (sessionDataKey) {
|
|
|
|
if (sessionDataKey) {
|
|
|
|
loginActionUrl = devicemgtProps["httpsURL"] + "/commonauth";
|
|
|
|
loginActionUrl = "/commonauth";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
viewModel.sessionDataKey = sessionDataKey;
|
|
|
|
viewModel.sessionDataKey = sessionDataKey;
|
|
|
|