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:
parent
04771b5ff7
commit
9881b8a4e2
3 changed files with 6 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue