Reduce maximum login attempts to improve security
This commit is contained in:
@@ -86,7 +86,7 @@ var (
|
|||||||
loginAttempts_ = map[string]*loginAttempts{}
|
loginAttempts_ = map[string]*loginAttempts{}
|
||||||
)
|
)
|
||||||
|
|
||||||
const loginMaxAttempts = 8
|
const loginMaxAttempts = 4
|
||||||
const loginWindow = 5 * time.Minute
|
const loginWindow = 5 * time.Minute
|
||||||
|
|
||||||
func clientIP(r *http.Request) string {
|
func clientIP(r *http.Request) string {
|
||||||
|
|||||||
Reference in New Issue
Block a user