Skip to content

Commit

Permalink
fix: signup rate limiting (resolve muety#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
muety authored and Milopadma committed Sep 23, 2024
1 parent b17096e commit b5863e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 28 deletions.
4 changes: 2 additions & 2 deletions routes/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ func (h *LoginHandler) RegisterRoutes(router chi.Router) {
router.
With(httprate.LimitByRealIP(h.config.Security.GetLoginMaxRate())).
Post("/login", h.PostLogin)
router.Get("/signup", h.GetSignup)
router.
With(httprate.LimitByRealIP(h.config.Security.GetSignupMaxRate())).
Get("/signup", h.GetSignup)
router.Post("/signup", h.PostSignup)
Post("/signup", h.PostSignup)
router.Get("/set-password", h.GetSetPassword)
router.Post("/set-password", h.PostSetPassword)
router.Get("/reset-password", h.GetResetPassword)
Expand Down
Loading

0 comments on commit b5863e1

Please sign in to comment.