From ffe5370e35d7eda627894a4510095dca26bdbbca Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Fri, 22 Mar 2013 18:37:53 -0700 Subject: [PATCH] Login now works with daemon mode --- commands.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands.go b/commands.go index 14ebe47b58..422dd07b46 100644 --- a/commands.go +++ b/commands.go @@ -98,6 +98,8 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin status, err := auth.Login(newAuthConfig) if err != nil { fmt.Fprintf(stdout, "Error : %s\n", err) + } else { + srv.runtime.authConfig = newAuthConfig } if status != "" { fmt.Fprintf(stdout, status)