summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorJack Hay <jack@allspice.io>2023-09-01 12:15:39 -0400
committerGitHub <noreply@github.com>2023-09-01 16:15:39 +0000
commit9881b8a4e24bc81b1acd80b51c5c2541b063149e (patch)
tree9bf4c5ce0c0d3f11880e6999ad3c2ced798f85eb /templates/user
parent04771b5ff79152a47aecce4b2b445daa4a96da33 (diff)
downloadgitea-9881b8a4e24bc81b1acd80b51c5c2541b063149e.tar.gz
gitea-9881b8a4e24bc81b1acd80b51c5c2541b063149e.zip
Add more descriptive error on forgot password page (#26848)
## Changes - Forces flashed error to render immediately when forgot password code is incorrect or has expired. - Adds a link back to the `forgot_password` page so that the user can restart the process (in the event that their link has expired)
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/auth/reset_passwd.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/auth/reset_passwd.tmpl b/templates/user/auth/reset_passwd.tmpl
index ac6eb35f1d..d7734bc57f 100644
--- a/templates/user/auth/reset_passwd.tmpl
+++ b/templates/user/auth/reset_passwd.tmpl
@@ -57,7 +57,7 @@
{{end}}
</div>
{{else}}
- <p class="center">{{.locale.Tr "auth.invalid_code"}}</p>
+ <p class="center">{{.locale.Tr "auth.invalid_code_forgot_password" (printf "%s/user/forgot_password" AppSubUrl) | Str2html}}</p>
{{end}}
</div>
</form>