Skip to content

Commit 0ccceb9

Browse files
committed
Add missing forget link to login old style
+ also enable forgot password on default on Debian (Ubuntu was already changed)
1 parent 38dbb45 commit 0ccceb9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ write_config_value "POLICY_USER_EDIT_DETAILS" "yes"
19401940
write_config_value "POLICY_USER_DELETE_LOGS" "yes"
19411941
write_config_value "POLICY_USER_CHANGE_THEME" "yes"
19421942
write_config_value "POLICY_SYSTEM_PROTECTED_ADMIN" "no"
1943-
write_config_value "POLICY_SYSTEM_PASSWORD_RESET" "no"
1943+
write_config_value "POLICY_SYSTEM_PASSWORD_RESET" "yes"
19441944
write_config_value "POLICY_SYSTEM_HIDE_SERVICES" "yes"
19451945
write_config_value "POLICY_SYSTEM_ENABLE_BACON" "no"
19461946
write_config_value "PLUGIN_APP_INSTALLER" "true"

web/templates/pages/login/login_a.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
<tr>
3131
<td style="padding: 12px 0 5px 2px;">
3232
<?=_('Password');?>
33+
<?php if ($_SESSION['POLICY_SYSTEM_PASSWORD_RESET'] !== 'no' ) {?>
34+
<div style="padding:0 6px 0px 14px; float:right;">
35+
<a tabindex="5" class="vst-advanced" href="/reset/">
36+
<?=_('forgot password');?>
37+
</a>
38+
</div>
39+
<?php } ?>
3340
</td>
3441
</tr>
3542
<tr>

0 commit comments

Comments
 (0)