Skip to content

Commit e7860dd

Browse files
* Fix issue in edit user template * Un suspend user before deleting user * Format and add comment Co-authored-by: Raphael <rs@scit.ch>
1 parent dcf6cae commit e7860dd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bin/v-delete-user

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ if [ -n "$DB_SYSTEM" ] && [ "$DB_SYSTEM" != 'no' ]; then
7575
check_result "$?" "database deletion failed"
7676
fi
7777

78+
# Unsuspend user just in case
79+
$BIN/v-unsuspend-user "$user"
80+
7881
# Releasing user ips
7982
$BIN/v-delete-user-ips "$user"
8083
check_result "$?" "user ip release failed"

web/templates/pages/edit_user.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
</tr>
152152
<tr>
153153
<td id="password-options-ip" style="<?php if ($v_login_disabled === 'yes') { echo 'display: none;'; } else { echo 'display: table-cell;'; }?>">
154-
<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" ?>><?=_('Use IP address allow list for login attempts');?></label>
154+
<label><input type="checkbox" size="20" class="vst-checkbox" onclick="javascript:elementHideShow('ip-allowlist')" name="v_login_use_iplist" <?php if ($v_login_use_iplist === "yes") echo "checked=yes" ?>><?=_('Use IP address allow list for login attempts');?></label>
155155
</td>
156156
</tr>
157157
<tr>

0 commit comments

Comments
 (0)