diff options
Diffstat (limited to 'routers/web/user/auth.go')
-rw-r--r-- | routers/web/user/auth.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/web/user/auth.go b/routers/web/user/auth.go index a9e60bb07c..313a583004 100644 --- a/routers/web/user/auth.go +++ b/routers/web/user/auth.go @@ -1491,8 +1491,7 @@ func ForgotPasswd(ctx *context.Context) { return } - email := ctx.FormString("email") - ctx.Data["Email"] = email + ctx.Data["Email"] = ctx.FormString("email") ctx.Data["IsResetRequest"] = true ctx.HTML(http.StatusOK, tplForgotPassword) |