fix
This commit is contained in:
parent
e5e51fc6d5
commit
898b783b1a
|
@ -90,7 +90,6 @@ func (l *UserGoogleLoginLogic) UserGoogleLogin(req *types.RequestGoogleLogin, us
|
||||||
}
|
}
|
||||||
|
|
||||||
l.registerInfo = &auth.RegisterToken{
|
l.registerInfo = &auth.RegisterToken{
|
||||||
|
|
||||||
Password: base64.RawURLEncoding.EncodeToString(nonce),
|
Password: base64.RawURLEncoding.EncodeToString(nonce),
|
||||||
Platform: string(auth.PLATFORM_GOOGLE),
|
Platform: string(auth.PLATFORM_GOOGLE),
|
||||||
OperateType: auth.OpTypeRegister,
|
OperateType: auth.OpTypeRegister,
|
||||||
|
@ -133,7 +132,7 @@ func (l *UserGoogleLoginLogic) AfterLogic(w http.ResponseWriter, r *http.Request
|
||||||
if resp.Code == 200 {
|
if resp.Code == 200 {
|
||||||
|
|
||||||
rurl := fmt.Sprintf(
|
rurl := fmt.Sprintf(
|
||||||
l.svcCtx.Config.MainAddress+"/oauth?token=%s&is_registered=%t®ister_token=%s",
|
"http://www.fusen.3718.cn/"+"/oauth?token=%s&is_registered=%t®ister_token=%s",
|
||||||
l.token,
|
l.token,
|
||||||
l.isRegistered,
|
l.isRegistered,
|
||||||
l.registerToken,
|
l.registerToken,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user