aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2024-02-21 12:57:22 +0800
committerGitHub <noreply@github.com>2024-02-21 12:57:22 +0800
commit22b8de85ddda50725480b21c5bf6ef9c0202b5e9 (patch)
tree1f658453880f663536049a821356fdac855ad1f1 /routers/web
parent3d3c3d9ee5e934c515370d98f1c552ca8ef10f8a (diff)
downloadgitea-22b8de85ddda50725480b21c5bf6ef9c0202b5e9.tar.gz
gitea-22b8de85ddda50725480b21c5bf6ef9c0202b5e9.zip
Do not use `ctx.Doer` when reset password (#29289)
Fix #29278. Caused by a small typo in #28733
Diffstat (limited to 'routers/web')
-rw-r--r--routers/web/auth/password.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/auth/password.go b/routers/web/auth/password.go
index c23379b87a..1f2d133282 100644
--- a/routers/web/auth/password.go
+++ b/routers/web/auth/password.go
@@ -204,7 +204,7 @@ func ResetPasswdPost(ctx *context.Context) {
Password: optional.Some(ctx.FormString("password")),
MustChangePassword: optional.Some(false),
}
- if err := user_service.UpdateAuth(ctx, ctx.Doer, opts); err != nil {
+ if err := user_service.UpdateAuth(ctx, u, opts); err != nil {
ctx.Data["IsResetForm"] = true
ctx.Data["Err_Password"] = true
switch {