1
0
Fork 0
forked from forgejo/forgejo

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)
This commit is contained in:
Jack Hay 2023-09-01 12:15:39 -04:00 committed by GitHub
parent 04771b5ff7
commit 9881b8a4e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -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>