aa
This commit is contained in:
@@ -92,7 +92,7 @@ func (c *Auth2Controller) Login() {
|
|||||||
} else if params.AuthType == auth2.AuthTypeEmail {
|
} else if params.AuthType == auth2.AuthTypeEmail {
|
||||||
params.AuthIDType = auth2.UserIDEmail
|
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)
|
params.AuthSecret = GetComposedCode(&c.Controller, params.AuthSecret)
|
||||||
}
|
}
|
||||||
ctx := auth2.NewContext(c.Ctx.ResponseWriter, c.Ctx.Request)
|
ctx := auth2.NewContext(c.Ctx.ResponseWriter, c.Ctx.Request)
|
||||||
|
|||||||
Reference in New Issue
Block a user