Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b9eec3

Browse files
committed
Restoring deleted line
Signed-off-by: Danny Kopping <[email protected]>
1 parent d408ed2 commit 2b9eec3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/coderd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,7 @@ func New(options *Options) *API {
10181018
})
10191019
r.Put("/appearance", api.putUserAppearanceSettings)
10201020
r.Route("/password", func(r chi.Router) {
1021+
r.Use(httpmw.RateLimit(options.LoginRateLimit, time.Minute))
10211022
r.Put("/", api.putUserPassword)
10221023
})
10231024
// These roles apply to the site wide permissions.

0 commit comments

Comments
 (0)