From 28aa1917f9f6c6eebe32a0e81e4c5f24652b8118 Mon Sep 17 00:00:00 2001 From: jaxleof Date: Wed, 14 Dec 2022 13:00:15 +0800 Subject: [PATCH] fix: login failed --- cmd/version.go | 2 +- link/login.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/version.go b/cmd/version.go index 41f0951..29b37da 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" ) -const VERSION = "v1.2.10" +const VERSION = "v1.2.11" func init() { rootCmd.AddCommand(versionCmd) diff --git a/link/login.go b/link/login.go index 9a4d2e2..9966e4e 100644 --- a/link/login.go +++ b/link/login.go @@ -117,6 +117,10 @@ func loginAgain() { if err != nil { log.Fatal(err) } + res, err = me.R().Get(codeforcesDomain) + if err != nil { + log.Fatal(err) + } doc, err := goquery.NewDocumentFromReader(bytes.NewReader(res.Body())) if err != nil { log.Fatal(err)