|
|
|
@@ -156,7 +156,7 @@ func Toggle(options *ToggleOptions) macaron.Handler { |
|
|
|
redirectUrl = ctx.Req.URL.RequestURI() |
|
|
|
} |
|
|
|
ctx.SetCookie("redirect_to", setting.AppSubURL+redirectUrl, 0, setting.AppSubURL) |
|
|
|
ctx.JSON(200, map[string]interface{}{ |
|
|
|
ctx.JSON(200, map[string]string{ |
|
|
|
"WechatRedirectUrl": setting.AppSubURL + "/authentication/wechat/bind", |
|
|
|
}) |
|
|
|
} |
|
|
|
|