fixed dumb mistake with authentication timeout
Signed-off-by: Mirror <voice@magicalmirro.red>
This commit is contained in:
parent
51185940d0
commit
ce3d8375d2
2
admin.go
2
admin.go
@ -41,7 +41,7 @@ func (a *AdminApi) checkAuth(w http.ResponseWriter, r *http.Request) (success bo
|
|||||||
success = true
|
success = true
|
||||||
}
|
}
|
||||||
if !success {
|
if !success {
|
||||||
if !ok {
|
if ok {
|
||||||
time.Sleep(3 * time.Second)
|
time.Sleep(3 * time.Second)
|
||||||
}
|
}
|
||||||
w.Header().Set("WWW-Authenticate", fmt.Sprintf("Basic realm=\"%s\"", config.ApplicationName))
|
w.Header().Set("WWW-Authenticate", fmt.Sprintf("Basic realm=\"%s\"", config.ApplicationName))
|
||||||
|
Loading…
Reference in New Issue
Block a user