mirror of
https://github.com/writeas/writefreely
synced 2025-01-23 20:01:50 +01:00
Show friendly message on /reset when password-based login is disabled
This commit is contained in:
parent
1e37f60d50
commit
8f02449ee8
@ -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 New Issue
Block a user