Skip to content

Commit

Permalink
fix: wrong argument order to ResetPassword
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Oct 3, 2024
1 parent 3d6c96c commit 8574fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func (a *API) passwordResetConfirm(w http.ResponseWriter, r *http.Request) {
return
}

err = a.password.ResetPassword(request.Email, request.Password, request.Token)
err = a.password.ResetPassword(request.Email, request.Token, request.Password)
if err != nil {
_ = ctx.Error(err, http.StatusInternalServerError)
return
Expand Down

0 comments on commit 8574fcf

Please sign in to comment.