修改第三方登录gitee登录回调
This commit is contained in:
parent
fd2f1456e2
commit
91e90666fc
|
|
@ -277,7 +277,7 @@ func GenerateJWTToken(userID int, userName string) (string, error) {
|
||||||
|
|
||||||
func DoGiteeCallBack(state *proto.ThirdPartyLoginState, code string) {
|
func DoGiteeCallBack(state *proto.ThirdPartyLoginState, code string) {
|
||||||
//获取Access Token
|
//获取Access Token
|
||||||
resp, err := worker.GetGiteeAccessTokenByCode(code, "https://pm.ljsea.top/tool/gitee_callback", proto.Config.GITEE_CLIENT_ID, proto.Config.GITEE_CLIENT_SECRET)
|
resp, err := worker.GetGiteeAccessTokenByCode(code, "https://pm.ljsea.top/tool/third_party_callback", proto.Config.GITEE_CLIENT_ID, proto.Config.GITEE_CLIENT_SECRET)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("get gitee access token error:", err)
|
log.Println("get gitee access token error:", err)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue