Rate limit login stuff

This commit is contained in:
bel
2019-10-22 02:12:27 +00:00
parent cc41444b21
commit 80017bb32b
3 changed files with 11 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ import (
)
func (s *Server) authorize(w http.ResponseWriter, r *http.Request) {
s.limiter.Wait(r.Context())
if r.Method != "POST" {
http.NotFound(w, r)
return