mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 05:52:43 +00:00
Show a link to password reset from password change and delete account (#862)
It's helpful when you forgot your password thus cannot change it (can happen if you log in via OAuth2 or OpenID) Also make sure that both the delete-account and password-change links to forgot-password will have the primary email pre-filled
This commit is contained in:
parent
c99e7e1a62
commit
8a98a25d8e
4 changed files with 10 additions and 0 deletions
|
@ -872,6 +872,9 @@ func ForgotPasswd(ctx *context.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
email := ctx.Query("email")
|
||||
ctx.Data["Email"] = email
|
||||
|
||||
ctx.Data["IsResetRequest"] = true
|
||||
ctx.HTML(200, tplForgotPassword)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue