mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: exit reset password request before passwords are compared (#13856)
This commit is contained in:
@ -1018,6 +1018,7 @@ func New(options *Options) *API {
|
||||
})
|
||||
r.Put("/appearance", api.putUserAppearanceSettings)
|
||||
r.Route("/password", func(r chi.Router) {
|
||||
r.Use(httpmw.RateLimit(options.LoginRateLimit, time.Minute))
|
||||
r.Put("/", api.putUserPassword)
|
||||
})
|
||||
// These roles apply to the site wide permissions.
|
||||
|
Reference in New Issue
Block a user