From 72e46e3e528ae1a5341486efcde81f1dfcb94332 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 17 May 2019 11:59:57 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E7=99=BB=E5=BD=95=E9=87=8D=E5=AE=9A?= =?UTF-8?q?=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- session/oauthctl.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/session/oauthctl.go b/session/oauthctl.go index 1706523..37997ba 100644 --- a/session/oauthctl.go +++ b/session/oauthctl.go @@ -115,6 +115,8 @@ func GithubCallbackHandler(w http.ResponseWriter, r *http.Request) { httpSession.Values["id"] = strconv.Itoa(rand.Int()) httpSession.Options.MaxAge = conf.Wide.HTTPSessionMaxAge httpSession.Save(r, w) + + http.Redirect(w, r, "/", http.StatusSeeOther) } // GitHubUserInfo returns GitHub user info specified by the given access token.