Show friendly message on /reset when password-based login is disabled

This commit is contained in:
Matt Baer 2023-10-03 11:19:47 -04:00
parent 1e37f60d50
commit 8f02449ee8
1 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,11 @@ label {
<div class="toosmall content-container clean">
<h1>Reset your password</h1>
{{ if not .EmailEnabled }}
{{ if .DisablePasswordAuth }}
<div class="alert info">
<p><strong>Password login is disabled on this server</strong>, so it's not possible to reset your password.</p>
</div>
{{ else if not .EmailEnabled }}
<div class="alert info">
<p><strong>Email is not configured on this server!</strong> Please <a href="/contact">contact your admin</a> to reset your password.</p>
</div>