diff --git a/modules/context/context.go b/modules/context/context.go index baaa69754..2c935881c 100755 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -357,7 +357,7 @@ func Contexter() macaron.Handler { // CheckWechatBind func (ctx *Context) CheckWechatBind() { - if !setting.WechatAuthSwitch { + if !setting.WechatAuthSwitch || ctx.User.IsBindWechat() { return } redirectUrl := ctx.Query("redirect_to")