Skip to content

Commit 31ee7a7

Browse files
author
navetacandra
committed
fix: fix always asking for authentication
1 parent 941abe8 commit 31ee7a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func getInfoRefs(hr HandlerReq) {
220220
return
221221
}
222222

223-
if user != DefaultConfig.AuthUserEnvVar && password != DefaultConfig.AuthPassEnvVar {
223+
if authok && user != DefaultConfig.AuthUserEnvVar && password != DefaultConfig.AuthPassEnvVar {
224224
w.WriteHeader(http.StatusUnauthorized)
225225
return
226226
}

0 commit comments

Comments
 (0)