This commit is contained in:
eson 2023-09-10 23:54:02 +08:00
parent 65ccfcb84e
commit 467cf3c5a3

View File

@ -104,6 +104,7 @@ func (l *UserGoogleLoginLogic) UserGoogleLogin(req *types.RequestGoogleLogin, us
},
}
l.defaultEmail = gemail
l.isRegistered = false
token, err := l.svcCtx.OAuthTokenManger.Encrypt(l.registerInfo)
if err != nil {
@ -111,7 +112,6 @@ func (l *UserGoogleLoginLogic) UserGoogleLogin(req *types.RequestGoogleLogin, us
return resp.SetStatus(basic.CodeOAuthRegisterTokenErr)
}
l.registerToken = token
l.defaultEmail = gemail
return resp.SetStatus(basic.CodeOK)
}