Add better errors for disabled account recovery (#15117)
Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
parent
62a4879e84
commit
622f1e764c
3 changed files with 10 additions and 3 deletions
|
@ -22,7 +22,13 @@
|
|||
<button class="ui blue button">{{.i18n.Tr "auth.send_reset_mail"}}</button>
|
||||
</div>
|
||||
{{else if .IsResetDisable}}
|
||||
<p class="center">{{.i18n.Tr "auth.disable_forgot_password_mail"}}</p>
|
||||
<p class="center">
|
||||
{{if $.IsAdmin}}
|
||||
{{.i18n.Tr "auth.disable_forgot_password_mail_admin"}}
|
||||
{{else}}
|
||||
{{.i18n.Tr "auth.disable_forgot_password_mail"}}
|
||||
{{end}}
|
||||
</p>
|
||||
{{else if .ResendLimited}}
|
||||
<p class="center">{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
|
||||
{{end}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue