mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08: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