fixed dumb mistake with authentication timeout

Signed-off-by: Mirror <voice@magicalmirro.red>
This commit is contained in:
Mirror 2022-06-17 15:37:19 +03:00
parent 51185940d0
commit ce3d8375d2
Signed by: voice
GPG Key ID: C2DCB75FD46475D2

View File

@ -41,7 +41,7 @@ func (a *AdminApi) checkAuth(w http.ResponseWriter, r *http.Request) (success bo
success = true
}
if !success {
if !ok {
if ok {
time.Sleep(3 * time.Second)
}
w.Header().Set("WWW-Authenticate", fmt.Sprintf("Basic realm=\"%s\"", config.ApplicationName))