Skip to content

Commit

Permalink
fix: /api/account/password-reset/request needs to support OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Oct 3, 2024
1 parent a0e53c0 commit cccefe5
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 @@ -883,7 +883,7 @@ func (a *API) Configure(router *mux.Router) error {
router.HandleFunc("/api/account/verify-email/resend", a.resendVerifyEmail).Methods("POST", "OPTIONS").Use(authMw)
router.HandleFunc("/api/account/update-email", a.updateEmail).Methods("POST", "OPTIONS").Use(authMw)
router.HandleFunc("/api/account/update-password", a.updatePassword).Methods("POST", "OPTIONS").Use(authMw)
router.HandleFunc("/api/account/password-reset/request", a.passwordResetRequest).Methods("POST")
router.HandleFunc("/api/account/password-reset/request", a.passwordResetRequest).Methods("POST", "OPTIONS")
router.HandleFunc("/api/account/password-reset/confirm", a.passwordResetConfirm).Methods("POST", "OPTIONS")
router.HandleFunc("/api/account/delete", a.deleteAccount).Methods("DELETE", "OPTIONS").Use(authMw)

Expand Down

0 comments on commit cccefe5

Please sign in to comment.