mirror of
https://github.com/writefreely/writefreely
synced 2024-11-24 09:33:11 +00:00
Show friendly message on /reset when password-based login is disabled
This commit is contained in:
parent
1e37f60d50
commit
8f02449ee8
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue