summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas <cez81@users.noreply.github.com>2017-03-22 15:29:29 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-22 22:29:29 +0800
commitbbbd08edc126adadc121d956d2d0a7a061b5ed02 (patch)
tree7fe898267d1c3fac2af6e8e046f078c0b51b1d82
parent1b1b85439ea8de0ce35dfe37902777b520d22fd0 (diff)
downloadgitea-bbbd08edc126adadc121d956d2d0a7a061b5ed02.tar.gz
gitea-bbbd08edc126adadc121d956d2d0a7a061b5ed02.zip
Changed text when password reset disabled. (#1364)
Fixes #1340
-rw-r--r--options/locale/locale_en-US.ini1
-rw-r--r--templates/user/auth/forgot_passwd.tmpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index f8e21b5dff..a13e424867 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -196,6 +196,7 @@ openid_connect_desc = The entered OpenID URIs is not know by the system, here yo
openid_register_title = Create new account
openid_register_desc = The entered OpenID URIs is not know by the system, here you can associate it to a new account.
openid_signin_desc = Example URIs: https://anne.me, bob.openid.org.cn, gnusocial.net/carry
+disable_forgot_password_mail = Sorry, password reset has been disabled. Please contact the site administrator.
[mail]
activate_account = Please activate your account
diff --git a/templates/user/auth/forgot_passwd.tmpl b/templates/user/auth/forgot_passwd.tmpl
index 77de5fceea..86a98fcf10 100644
--- a/templates/user/auth/forgot_passwd.tmpl
+++ b/templates/user/auth/forgot_passwd.tmpl
@@ -22,7 +22,7 @@
<button class="ui blue button">{{.i18n.Tr "auth.send_reset_mail"}}</button>
</div>
{{else if .IsResetDisable}}
- <p class="center">{{.i18n.Tr "auth.disable_register_mail"}}</p>
+ <p class="center">{{.i18n.Tr "auth.disable_forgot_password_mail"}}</p>
{{else if .ResendLimited}}
<p class="center">{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
{{end}}