Skip to content

Commit dd8ea4b

Browse files
committed
Add missing var
1 parent 11f1a31 commit dd8ea4b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

auth_server/server/server.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (as *AuthServer) Authenticate(ar *authRequest) (bool, authn.Labels, error)
219219
if err == authn.NoMatch {
220220
continue
221221
} else if err == authn.WrongPass {
222-
glog.Warningf("Failed authentication with %s: %s", err)
222+
glog.Warningf("Failed authentication with %s: %s", err, ar.Account)
223223
return false, nil, nil
224224
}
225225
err = fmt.Errorf("authn #%d returned error: %s", i+1, err)
@@ -334,13 +334,13 @@ func (as *AuthServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
334334
glog.V(3).Infof("Request: %+v", req)
335335
path_prefix := as.config.Server.PathPrefix
336336
switch {
337-
case req.URL.Path == path_prefix + "/":
337+
case req.URL.Path == path_prefix+"/":
338338
as.doIndex(rw, req)
339-
case req.URL.Path == path_prefix + "/auth":
339+
case req.URL.Path == path_prefix+"/auth":
340340
as.doAuth(rw, req)
341-
case req.URL.Path == path_prefix + "/google_auth" && as.ga != nil:
341+
case req.URL.Path == path_prefix+"/google_auth" && as.ga != nil:
342342
as.ga.DoGoogleAuth(rw, req)
343-
case req.URL.Path == path_prefix + "/github_auth" && as.gha != nil:
343+
case req.URL.Path == path_prefix+"/github_auth" && as.gha != nil:
344344
as.gha.DoGitHubAuth(rw, req)
345345
default:
346346
http.Error(rw, "Not found", http.StatusNotFound)

0 commit comments

Comments
 (0)