Browse Source

Login now works with daemon mode

Guillaume J. Charmes 12 years ago
parent
commit
ffe5370e35
1 changed files with 2 additions and 0 deletions
  1. 2 0
      commands.go

+ 2 - 0
commands.go

@@ -98,6 +98,8 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin
 	status, err := auth.Login(newAuthConfig)
 	status, err := auth.Login(newAuthConfig)
 	if err != nil {
 	if err != nil {
 		fmt.Fprintf(stdout, "Error : %s\n", err)
 		fmt.Fprintf(stdout, "Error : %s\n", err)
+	} else {
+		srv.runtime.authConfig = newAuthConfig
 	}
 	}
 	if status != "" {
 	if status != "" {
 		fmt.Fprintf(stdout, status)
 		fmt.Fprintf(stdout, status)