diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-mod/public/js/operation-mod.js b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-mod/public/js/operation-mod.js index 0672461471..bc3d155748 100644 --- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-mod/public/js/operation-mod.js +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-mod/public/js/operation-mod.js @@ -478,6 +478,8 @@ var operationModule = function () { var ppp = {}; var ipSec = {}; var ikev2 = {}; + var pulseSecure = {}; + if (operationData["vpnType"] == "PPTP") { ppp = { "authName": operationData["pptpAuthName"], @@ -523,6 +525,12 @@ var operationModule = function () { "serverCertificateIssuerCommonName" : operationData["ikev2ServerCertificateIssuerCommonName"], "serverCertificateCommonName" : operationData["ikev2ServerCertificateCommonName"] }; + } else if (operationData["vpnType"] == "PulseSecure") { + pulseSecure = { + "remoteAddress" : operationData["pulsesecureRemoteAddress"], + "userName" : operationData["pulsesecureName"], + "sharedSecret" : operationData["pulsesecureSharedSecret"] + }; } var domainsAlways = new Array(); @@ -553,7 +561,8 @@ var operationModule = function () { "vpnType" : operationData["vpnType"], "ppp": ppp, "ipSec": ipSec, - "ikEv2": ikev2 + "ikEv2": ikev2, + "pulseSecure" : pulseSecure } }; break; diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/public/js/policy-create.js b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/public/js/policy-create.js index 6ee4e6d822..d0598ea6f7 100644 --- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/public/js/policy-create.js +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/public/js/policy-create.js @@ -1,5 +1,4 @@ /* - * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -610,7 +609,8 @@ validateStep["policy-profile"] = function () { } } - }if (policy["platform"] == platformTypeConstants["WINDOWS"]) { + } + if (policy["platform"] == platformTypeConstants["WINDOWS"]) { if (configuredOperations.length == 0) { // updating validationStatus validationStatus = { @@ -708,7 +708,8 @@ validateStep["policy-profile"] = function () { } } - } else if (policy["platform"] == platformTypeConstants["IOS"]) { + } + else if (policy["platform"] == platformTypeConstants["IOS"]) { if (configuredOperations.length == 0) { // updating validationStatus validationStatus = { @@ -1257,7 +1258,7 @@ validateStep["policy-profile"] = function () { } if ($.inArray(iosOperationConstants["VPN_OPERATION_CODE"], configuredOperations) != -1) { - // if WIFI is configured + // if VPN is configured operation = iosOperationConstants["VPN_OPERATION"]; // initializing continueToCheckNextInputs to true continueToCheckNextInputs = true;