Merge branch 'master' into 'master'

configure display lock timeout

See merge request entgra/carbon-device-mgt-plugins!135
revert-dabc3590
Inosh Perara 5 years ago
commit c796ba70aa

@ -133,19 +133,19 @@ var androidOperationModule = function () {
"passcodePolicyMinComplexChars": operationPayload["minComplexChars"], "passcodePolicyMinComplexChars": operationPayload["minComplexChars"],
"passcodePolicyMaxPasscodeAgeInDays": operationPayload["maxPINAgeInDays"], "passcodePolicyMaxPasscodeAgeInDays": operationPayload["maxPINAgeInDays"],
"passcodePolicyPasscodeHistory": operationPayload["pinHistory"], "passcodePolicyPasscodeHistory": operationPayload["pinHistory"],
"passcodePolicyMaxFailedAttempts": operationPayload["maxFailedAttempts"] "passcodePolicyMaxFailedAttempts": operationPayload["maxFailedAttempts"],
"passcodePolicyMaxTimeToLock": operationPayload["maxTimeToLock"],
"passcodePolicyWPExist": operationPayload["passcodePolicyWPExist"]
}; };
if (operationPayload["passcodePolicyWPExist"] === true) { if (operationPayload["passcodePolicyWPExist"] === true) {
payload["passcodePolicyWPExist"] = operationPayload["passcodePolicyWPExist"]; payload["passcodePolicyAllowSimpleWP"] = operationPayload.workProfilePasscode["allowSimpleWP"];
payload["passcodePolicyAllowSimpleWP"] = operationPayload.workProfilePasscode["passcodePolicyAllowSimpleWP"]; payload["passcodePolicyRequireAlphanumericWP"] = operationPayload.workProfilePasscode["requireAlphanumericWP"];
payload["passcodePolicyRequireAlphanumericWP"] = operationPayload.workProfilePasscode["passcodePolicyRequireAlphanumericWP"]; payload["passcodePolicyMinLengthWP"] = operationPayload.workProfilePasscode["minLengthWP"];
payload["passcodePolicyMinLengthWP"] = operationPayload.workProfilePasscode["passcodePolicyMinLengthWP"]; payload["passcodePolicyMinComplexCharsWP"] = operationPayload.workProfilePasscode["minComplexCharsWP"];
payload["passcodePolicyMinComplexCharsWP"] = operationPayload.workProfilePasscode["passcodePolicyMinComplexCharsWP"]; payload["passcodePolicyMaxPasscodeAgeInDaysWP"] = operationPayload.workProfilePasscode["maxPINAgeInDaysWP"];
payload["passcodePolicyMaxPasscodeAgeInDaysWP"] = operationPayload.workProfilePasscode["passcodePolicyMaxPasscodeAgeInDaysWP"]; payload["passcodePolicyPasscodeHistoryWP"] = operationPayload.workProfilePasscode["pinHistoryWP"];
payload["passcodePolicyPasscodeHistoryWP"] = operationPayload.workProfilePasscode["passcodePolicyPasscodeHistoryWP"]; payload["passcodePolicyMaxFailedAttemptsWP"] = operationPayload.workProfilePasscode["maxFailedAttemptsWP"];
payload["passcodePolicyMaxFailedAttemptsWP"] = operationPayload.workProfilePasscode["passcodePolicyMaxFailedAttemptsWP"]; payload["passcodePolicyMaxTimeToLockWP"] = operationPayload.workProfilePasscode["maxTimeToLockWP"];
} else {
payload["passcodePolicyWPExist"] = operationPayload["passcodePolicyWPExist"];
} }
break; break;
case androidOperationConstants["CAMERA_OPERATION_CODE"]: case androidOperationConstants["CAMERA_OPERATION_CODE"]:
@ -522,25 +522,24 @@ var androidOperationModule = function () {
"minComplexChars": operationData["passcodePolicyMinComplexChars"], "minComplexChars": operationData["passcodePolicyMinComplexChars"],
"maxPINAgeInDays": operationData["passcodePolicyMaxPasscodeAgeInDays"], "maxPINAgeInDays": operationData["passcodePolicyMaxPasscodeAgeInDays"],
"pinHistory": operationData["passcodePolicyPasscodeHistory"], "pinHistory": operationData["passcodePolicyPasscodeHistory"],
"maxFailedAttempts": operationData["passcodePolicyMaxFailedAttempts"] "maxFailedAttempts": operationData["passcodePolicyMaxFailedAttempts"],
"maxTimeToLock": operationData["passcodePolicyMaxTimeToLock"],
"passcodePolicyWPExist": operationData["passcodePolicyWPExist"]
} }
}; };
workProfilePasscode = {}; workProfilePasscode = {};
if (operationData["passcodePolicyWPExist"] === true) { if (operationData["passcodePolicyWPExist"] === true) {
payload.operation["passcodePolicyWPExist"] = operationData["passcodePolicyWPExist"]; workProfilePasscode["allowSimpleWP"] = operationData["passcodePolicyAllowSimpleWP"];
workProfilePasscode["passcodePolicyAllowSimpleWP"] = operationData["passcodePolicyAllowSimpleWP"]; workProfilePasscode["requireAlphanumericWP"] = operationData["passcodePolicyRequireAlphanumericWP"];
workProfilePasscode["passcodePolicyRequireAlphanumericWP"] = operationData["passcodePolicyRequireAlphanumericWP"]; workProfilePasscode["minLengthWP"] = operationData["passcodePolicyMinLengthWP"];
workProfilePasscode["passcodePolicyMinLengthWP"] = operationData["passcodePolicyMinLengthWP"]; workProfilePasscode["minComplexCharsWP"] = operationData["passcodePolicyMinComplexCharsWP"];
workProfilePasscode["passcodePolicyMinComplexCharsWP"] = operationData["passcodePolicyMinComplexCharsWP"]; workProfilePasscode["maxPINAgeInDaysWP"] = operationData["passcodePolicyMaxPasscodeAgeInDaysWP"];
workProfilePasscode["passcodePolicyMaxPasscodeAgeInDaysWP"] = operationData["passcodePolicyMaxPasscodeAgeInDaysWP"]; workProfilePasscode["pinHistoryWP"] = operationData["passcodePolicyPasscodeHistoryWP"];
workProfilePasscode["passcodePolicyPasscodeHistoryWP"] = operationData["passcodePolicyPasscodeHistoryWP"]; workProfilePasscode["maxFailedAttemptsWP"] = operationData["passcodePolicyMaxFailedAttemptsWP"] ;
workProfilePasscode["passcodePolicyMaxFailedAttemptsWP"] = operationData["passcodePolicyMaxFailedAttemptsWP"] ; workProfilePasscode["maxTimeToLockWP"] = operationData["passcodePolicyMaxTimeToLockWP"];
payload.operation.workProfilePasscode = workProfilePasscode; payload.operation.workProfilePasscode = workProfilePasscode;
} else {
payload["passcodePolicyWPExist"] = operationData["passcodePolicyWPExist"];
} }
break; break;
break;
case androidOperationConstants["APPLICATION_OPERATION_CODE"]: case androidOperationConstants["APPLICATION_OPERATION_CODE"]:
payload = { payload = {
"operation": { "operation": {

@ -339,6 +339,18 @@
</select> </select>
</div> </div>
<div class="wr-input-control">
<label class="wr-input-label" for="passcode-policy-max-time-to-lock">
Time to auto lock seconds*
<span class="helper" title="Time it takes lock a device automatially when idle">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
<br>
</label>
<input id="passcode-policy-max-time-to-lock" type="text" class="form-control operationDataKeys"
data-key="passcodePolicyMaxTimeToLock" >
</div>
<!--Passcode policy for work profile only--> <!--Passcode policy for work profile only-->
<h2 class="sub-title panel-title">Passcode policy for work profile</h2> <h2 class="sub-title panel-title">Passcode policy for work profile</h2>
<div class="wr-input-control"> <div class="wr-input-control">
@ -477,6 +489,19 @@
</select> </select>
</div> </div>
<div class="wr-input-control">
<label class="wr-input-label" for="wp-passcode-policy-max-time-to-lock">
Time to auto lock seconds*
<span class="helper" title="Time it takes lock a device automatially when idle">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
<br>
</label>
<input id="wp-passcode-policy-max-time-to-lock" type="text" class="form-control
operationDataKeys"
data-key="passcodePolicyMaxTimeToLockWP" >
</div>
</div> </div>
</div> </div>
</div> </div>

@ -321,6 +321,18 @@
</select> </select>
</div> </div>
<div class="wr-input-control">
<label class="wr-input-label" for="passcode-policy-max-time-to-lock">
Time to auto lock seconds*
<span class="helper" title="Time it takes lock a device automatially when idle">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
<br>
</label>
<input id="passcode-policy-max-time-to-lock" type="text" class="form-control operationDataKeys"
data-key="passcodePolicyMaxTimeToLock" disabled>
</div>
<!--Passcode policy for work profile only--> <!--Passcode policy for work profile only-->
<h2 class="sub-title panel-title">Passcode policy for work profile</h2> <h2 class="sub-title panel-title">Passcode policy for work profile</h2>
<div class="wr-input-control"> <div class="wr-input-control">
@ -458,6 +470,19 @@
<option value="10">10</option> <option value="10">10</option>
</select> </select>
</div> </div>
<div class="wr-input-control">
<label class="wr-input-label" for="wp-passcode-policy-max-time-to-lock">
Time to auto lock seconds*
<span class="helper" title="Time it takes lock a device automatially when idle">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
<br>
</label>
<input id="wp-passcode-policy-max-time-to-lock" type="text" class="form-control
operationDataKeys"
data-key="passcodePolicyMaxTimeToLockWP" disabled>
</div>
</div> </div>
</div> </div>
</div> </div>

@ -347,6 +347,18 @@
</select> </select>
</div> </div>
<div class="wr-input-control">
<label class="wr-input-label" for="passcode-policy-max-time-to-lock">
Time to auto lock seconds*
<span class="helper" title="Time it takes lock a device automatially when idle">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
<br>
</label>
<input id="passcode-policy-max-time-to-lock" type="text" class="form-control operationDataKeys"
data-key="passcodePolicyMaxTimeToLock" >
</div>
<!--Passcode policy for work profile only--> <!--Passcode policy for work profile only-->
<h2 class="sub-title panel-title">Passcode policy for work profile</h2> <h2 class="sub-title panel-title">Passcode policy for work profile</h2>
<div class="wr-input-control"> <div class="wr-input-control">
@ -485,6 +497,18 @@
</select> </select>
</div> </div>
<div class="wr-input-control">
<label class="wr-input-label" for="wp-passcode-policy-max-time-to-lock">
Time to auto lock seconds*
<span class="helper" title="Time it takes lock a device automatially when idle">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
<br>
</label>
<input id="wp-passcode-policy-max-time-to-lock" type="text" class="form-control
operationDataKeys"
data-key="passcodePolicyMaxTimeToLockWP" >
</div>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save