Skip to content

Commit 22b8de8

Browse files
authored
Do not use ctx.Doer when reset password (#29289)
Fix #29278. Caused by a small typo in #28733
1 parent 3d3c3d9 commit 22b8de8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/auth/password.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func ResetPasswdPost(ctx *context.Context) {
204204
Password: optional.Some(ctx.FormString("password")),
205205
MustChangePassword: optional.Some(false),
206206
}
207-
if err := user_service.UpdateAuth(ctx, ctx.Doer, opts); err != nil {
207+
if err := user_service.UpdateAuth(ctx, u, opts); err != nil {
208208
ctx.Data["IsResetForm"] = true
209209
ctx.Data["Err_Password"] = true
210210
switch {

0 commit comments

Comments
 (0)