fix:修复总后台验证码登录使用参数错误

This commit is contained in:
henry
2022-02-23 15:04:00 +08:00
parent dcb5948e91
commit c0df70c532

View File

@ -58,7 +58,7 @@ func loginForPassword(params *AccountLoginParams, tenantID uint64) (*model.SysUs
// loginForSmsCaptcha 短信验证码登陆
func loginForSmsCaptcha(params *AccountLoginParams, tenantID uint64) (*model.SysUser, error) {
if params.Password == "" {
if params.Captcha == "" {
return nil, errors.New("操作错误,验证码不可为空")
}
// 验证验证码