diff --git a/controllers/auth2.go b/controllers/auth2.go index 88d45da48..1d6089e7f 100644 --- a/controllers/auth2.go +++ b/controllers/auth2.go @@ -92,7 +92,7 @@ func (c *Auth2Controller) Login() { } else if params.AuthType == auth2.AuthTypeEmail { params.AuthIDType = auth2.UserIDEmail } - if params.AuthType == weixin.AuthTypeMini { + if params.AuthType == weixin.AuthTypeMini || params.AuthType == weixin.AuthTypeWxApp { params.AuthSecret = GetComposedCode(&c.Controller, params.AuthSecret) } ctx := auth2.NewContext(c.Ctx.ResponseWriter, c.Ctx.Request)