|
|
@@ -129,18 +129,11 @@
|
|
|
<meter max="4" id="meter"></meter>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <? if ($_SESSION['userContext'] === 'admin') {?>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <label><input type="checkbox" size="20" class="vst-checkbox" onclick="javascript:elementHideShow('password-details')" name="v_login_disabled" <?php if ($data[$user]['LOGIN_DISABLED'] == "yes") echo "checked=yes" ?>><?php print _('Do not allow user to log in to Control Panel');?></label>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <? } ?>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <table id="password-details" style="<?php if ($data[$user]['LOGIN_DISABLED'] == "yes") { echo 'display: none;'; } else { echo 'display: table-cell;'; }?>">
|
|
|
+ <table id="password-details">
|
|
|
<tr>
|
|
|
- <td class="vst-text step-top">
|
|
|
+ <td class="vst-text">
|
|
|
<?php print _('Your password must have at least');?>:
|
|
|
<ul>
|
|
|
<li><?php print _('8 characters long');?></li>
|
|
|
@@ -149,8 +142,15 @@
|
|
|
</ul>
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ <? if ($_SESSION['userContext'] === 'admin') {?>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <label><input type="checkbox" size="20" class="vst-checkbox" onclick="javascript:elementHideShow('password-options');elementHideShow('password-options-ip');" name="v_login_disabled" <?php if ($data[$user]['LOGIN_DISABLED'] == "yes") echo "checked=yes" ?>><?php print _('Do not allow user to log in to Control Panel');?></label>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <? } ?>
|
|
|
<tr>
|
|
|
- <td>
|
|
|
+ <td id="password-options" style="<?php if ($data[$user]['LOGIN_DISABLED'] == "yes") { echo 'display: none;'; } else { echo 'display: table-cell;'; }?>">
|
|
|
<label><input type="checkbox" class="vst-checkbox password-option" name="v_twofa" <?php if(!empty($v_twofa)) echo "checked=yes" ?>><?php print _('Enable 2FA');?></label>
|
|
|
<?php if (!empty($v_twofa)) { ?>
|
|
|
<p><?php echo _('2FA Reset Code:').' '.$v_twofa; ?></br></p>
|
|
|
@@ -160,7 +160,7 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>
|
|
|
+ <td id="password-options-ip" style="<?php if ($data[$user]['LOGIN_DISABLED'] == "yes") { echo 'display: none;'; } else { echo 'display: table-cell;'; }?>">
|
|
|
<label><input type="checkbox" size="20" class="vst-checkbox" onclick="javascript:elementHideShow('ip-allowlist')" name="v_login_use_iplist" <?php if ($data[$user]['LOGIN_USE_IPLIST'] === "yes") echo "checked=yes" ?>><?php print _('Use IP address allow list for login attempts');?></label>
|
|
|
</td>
|
|
|
</tr>
|