SendVerifyCode时,如果是管理员,返回verifyCode

This commit is contained in:
gazebo
2020-01-06 12:13:28 +08:00
parent a07209c86d
commit 5d21158c7b
6 changed files with 32 additions and 14 deletions

View File

@@ -66,7 +66,7 @@ func (c *Auth2Controller) CreateCaptcha() {
// @router /SendVerifyCode [post]
func (c *Auth2Controller) SendVerifyCode() {
c.callSendVerifyCode(func(params *tAuth2SendVerifyCodeParams) (retVal interface{}, errCode string, err error) {
err = auth2.SendVerifyCode(params.AuthToken, params.CaptchaID, params.CaptchaValue, params.AuthID)
retVal, err = auth2.SendVerifyCode(params.AuthToken, params.CaptchaID, params.CaptchaValue, params.AuthID)
return retVal, "", err
})
}