|
@@ -357,7 +357,7 @@ func Contexter() macaron.Handler { |
|
|
|
|
|
|
|
|
// CheckWechatBind |
|
|
// CheckWechatBind |
|
|
func (ctx *Context) CheckWechatBind() { |
|
|
func (ctx *Context) CheckWechatBind() { |
|
|
if !setting.WechatAuthSwitch { |
|
|
|
|
|
|
|
|
if !setting.WechatAuthSwitch || ctx.User.IsBindWechat() { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
redirectUrl := ctx.Query("redirect_to") |
|
|
redirectUrl := ctx.Query("redirect_to") |
|
|