소스 검색

Login now works with daemon mode

Guillaume J. Charmes 12 년 전
부모
커밋
ffe5370e35
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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)
 	if err != nil {
 		fmt.Fprintf(stdout, "Error : %s\n", err)
+	} else {
+		srv.runtime.authConfig = newAuthConfig
 	}
 	if status != "" {
 		fmt.Fprintf(stdout, status)