Merge pull request #2487 from webmin/dev/password-recovery-link-always-show-if-enabled

Fix to always show password recovery link if enabled
This commit is contained in:
Jamie Cameron
2025-06-01 13:49:42 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ if (!$in{'initial'}) {
}
print &ui_form_end();
if ($in{'failed'} && $gconfig{'forgot_pass'}) {
if ($gconfig{'forgot_pass'}) {
# Show forgotten password link
print &ui_form_start("forgot_form.cgi", "post");
print &ui_hidden("failed", $in{'failed'});

View File

@@ -125,7 +125,7 @@ print &ui_submit($text{'session_login'});
print &ui_reset($text{'session_clear'});
print &ui_form_end();
if ($in{'failed'} && $gconfig{'forgot_pass'}) {
if ($gconfig{'forgot_pass'}) {
# Show forgotten password link
print &ui_form_start("forgot_form.cgi", "post");
print &ui_hidden("failed", $in{'failed'});