mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-22 17:34:03 +03:00
This commit is contained in:
parent
2bec8a4f1e
commit
2cb5ec5983
@ -341,8 +341,10 @@ func ForgotPasswdPost(ctx *context.Context) {
|
|||||||
u, err := models.GetUserByEmail(email)
|
u, err := models.GetUserByEmail(email)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if models.IsErrUserNotExist(err) {
|
if models.IsErrUserNotExist(err) {
|
||||||
ctx.Data["Err_Email"] = true
|
ctx.Data["Hours"] = setting.Service.ActiveCodeLives / 60
|
||||||
ctx.RenderWithErr(ctx.Tr("auth.email_not_associate"), FORGOT_PASSWORD, nil)
|
ctx.Data["IsResetSent"] = true
|
||||||
|
ctx.HTML(200, FORGOT_PASSWORD)
|
||||||
|
return
|
||||||
} else {
|
} else {
|
||||||
ctx.Handle(500, "user.ResetPasswd(check existence)", err)
|
ctx.Handle(500, "user.ResetPasswd(check existence)", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user