浏览代码

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)