Skip to content

Commit

Permalink
🎨 登录问题
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Feb 14, 2019
1 parent c97b09d commit d9f5b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/oauthctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func githubCallbackAction(c *gin.Context) {

referer := state[16:]
if strings.Contains(referer, "__0") || strings.Contains(referer, "__1") {
referer = referer[:len("__0")]
referer = referer[:len(referer)-len("__0")]
}
accessToken := c.Query("ak")
githubUser := util.GitHubUserInfo(accessToken)
Expand Down

0 comments on commit d9f5b4b

Please sign in to comment.