diff options
author | John Olheiser <john.olheiser@gmail.com> | 2021-06-25 23:16:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 23:16:36 -0500 |
commit | 622f1e764c6230023cc1944ad727cd2ad1544b68 (patch) | |
tree | f49d10652e3fd4e9c30119f15a8954c8b2085612 /templates | |
parent | 62a4879e84c7474dd72ab0eb4c54923f2690510c (diff) | |
download | gitea-622f1e764c6230023cc1944ad727cd2ad1544b68.tar.gz gitea-622f1e764c6230023cc1944ad727cd2ad1544b68.zip |
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>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/auth/forgot_passwd.tmpl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/user/auth/forgot_passwd.tmpl b/templates/user/auth/forgot_passwd.tmpl index 241deeed4a..2ff7acb97d 100644 --- a/templates/user/auth/forgot_passwd.tmpl +++ b/templates/user/auth/forgot_passwd.tmpl @@ -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}} |