From 05ed9d9233ec0ca4eb998eaf4785a7c1d2cbf394 Mon Sep 17 00:00:00 2001 From: chenyifan01 Date: Thu, 24 Feb 2022 17:54:03 +0800 Subject: [PATCH] #1573 fix bug --- modules/context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")