This commit is contained in:
henry
2022-02-25 17:49:09 +08:00

View File

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