diff options
author | Jack Hay <jack@allspice.io> | 2023-09-01 12:15:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 16:15:39 +0000 |
commit | 9881b8a4e24bc81b1acd80b51c5c2541b063149e (patch) | |
tree | 9bf4c5ce0c0d3f11880e6999ad3c2ced798f85eb /templates/user | |
parent | 04771b5ff79152a47aecce4b2b445daa4a96da33 (diff) | |
download | gitea-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.tmpl | 2 |
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> |