Add delay after login failure.

This commit is contained in:
Juliusz Chroboczek
2020-12-02 00:07:31 +01:00
parent 2f6c710f29
commit b30d4fe537
3 changed files with 14 additions and 6 deletions
+3 -1
View File
@@ -559,8 +559,10 @@ func checkGroupPermissions(w http.ResponseWriter, r *http.Request, groupname str
}
p, err := desc.GetPermission(groupname, httpClient{user, pass})
if err != nil || !p.Record {
if err == group.ErrNotAuthorised {
time.Sleep(200 * time.Millisecond)
}
return false
}