|
129 | 129 | <meter max="4" id="meter"></meter> |
130 | 130 | </td> |
131 | 131 | </tr> |
132 | | - <tr> |
133 | | - <td class="vst-text"> |
134 | | - <?php print _('Your password must have at least');?>: |
135 | | - <ul> |
136 | | - <li><?php print _('8 characters long');?></li> |
137 | | - <li><?php print _('1 uppercase & 1 lowercase character');?></li> |
138 | | - <li><?php print _('1 number');?></li> |
139 | | - </ul> |
140 | | - </td> |
141 | | - </tr> |
142 | 132 | <tr> |
143 | 133 | <td> |
144 | | - <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> |
145 | | - <?php if (!empty($v_twofa)) { ?> |
146 | | - <p><?php echo _('2FA Reset Code:').' '.$v_twofa; ?></br></p> |
147 | | - <p><?php echo _('Please scan the code below in your 2FA application:'); ?></p> |
148 | | - <div><img class="qr-code" src="<?php echo $v_qrcode; ?>"></div> |
149 | | - <?php } ?> |
| 134 | + <table id="password-details"> |
| 135 | + <tr> |
| 136 | + <td class="vst-text"> |
| 137 | + <?php print _('Your password must have at least');?>: |
| 138 | + <ul> |
| 139 | + <li><?php print _('8 characters long');?></li> |
| 140 | + <li><?php print _('1 uppercase & 1 lowercase character');?></li> |
| 141 | + <li><?php print _('1 number');?></li> |
| 142 | + </ul> |
| 143 | + </td> |
| 144 | + </tr> |
| 145 | + <? if ($_SESSION['userContext'] === 'admin') {?> |
| 146 | + <tr> |
| 147 | + <td> |
| 148 | + <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> |
| 149 | + </td> |
| 150 | + </tr> |
| 151 | + <? } ?> |
| 152 | + <tr> |
| 153 | + <td id="password-options" style="<?php if ($data[$user]['LOGIN_DISABLED'] == "yes") { echo 'display: none;'; } else { echo 'display: table-cell;'; }?>"> |
| 154 | + <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> |
| 155 | + <?php if (!empty($v_twofa)) { ?> |
| 156 | + <p><?php echo _('2FA Reset Code:').' '.$v_twofa; ?></br></p> |
| 157 | + <p><?php echo _('Please scan the code below in your 2FA application:'); ?></p> |
| 158 | + <div><img class="qr-code" src="<?php echo $v_qrcode; ?>"></div> |
| 159 | + <?php } ?> |
| 160 | + </td> |
| 161 | + </tr> |
| 162 | + <tr> |
| 163 | + <td id="password-options-ip" style="<?php if ($data[$user]['LOGIN_DISABLED'] == "yes") { echo 'display: none;'; } else { echo 'display: table-cell;'; }?>"> |
| 164 | + <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> |
| 165 | + </td> |
| 166 | + </tr> |
| 167 | + <tr> |
| 168 | + <td> |
| 169 | + <table id="ip-allowlist" style="<? if ($data[$user]['LOGIN_USE_IPLIST'] === 'yes') { echo 'display: table-cell;'; } else { echo 'display: none;'; } ?>"> |
| 170 | + <tr> |
| 171 | + <td> |
| 172 | + <input type="text" size="20" class="vst-input" placeholder="<?=_('Example: 127.0.0.1,192.168.1.100');?>" name="v_login_allowed_ips" value="<?=htmlentities(trim($v_login_allowed_ips, "'"))?>"> |
| 173 | + </td> |
| 174 | + </tr> |
| 175 | + </table> |
| 176 | + </td> |
| 177 | + </tr> |
| 178 | + </table> |
150 | 179 | </td> |
151 | 180 | </tr> |
152 | 181 | <tr> |
|
220 | 249 | </td> |
221 | 250 | </tr> |
222 | 251 | <?}?> |
| 252 | + <? if ($_GET['user'] === $_SESSION['user']) { ?> |
223 | 253 | <tr> |
224 | 254 | <td class="vst-text input-label"> |
225 | | - <?php print _('Default sort order');?> |
| 255 | + <?php print _('Default list sort order');?> |
226 | 256 | </td> |
227 | 257 | </tr> |
228 | 258 | <tr> |
|
233 | 263 | </select> |
234 | 264 | </td> |
235 | 265 | </tr> |
| 266 | + <? } ?> |
236 | 267 | <? if ($_SESSION['userContext'] === 'admin') {?> |
237 | 268 | <tr> |
238 | 269 | <td class="vst-text input-label"> |
|
0 commit comments