- auth2也支持多小程序登录

This commit is contained in:
gazebo
2019-08-13 11:49:42 +08:00
parent cd84cbdfd2
commit d4270bf8c3
2 changed files with 7 additions and 4 deletions

View File

@@ -68,6 +68,9 @@ func (c *Auth2Controller) Login() {
} else if params.AuthType == auth2.AuthTypeEmail {
params.AuthIDType = auth2.UserIDEmail
}
if params.AuthType == weixin.AuthTypeMini {
params.AuthSecret = GetComposedCode(&c.Controller, params.AuthSecret)
}
retVal, err = auth2.Login(params.AuthType, params.AuthID, params.AuthIDType, params.AuthSecret)
return retVal, "", err
})