Skip to content

Commit

Permalink
Do not use ctx.Doer when reset password (#29289)
Browse files Browse the repository at this point in the history
Fix #29278.

Caused by a small typo in #28733
  • Loading branch information
wolfogre committed Feb 21, 2024
1 parent 3d3c3d9 commit 22b8de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/auth/password.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 22b8de8

Please sign in to comment.