| | |
| | | throw Oops.Oh(ErrorCodeEnum.D1027); |
| | | |
| | | // 是否开启验证码 |
| | | if (await _sysConfigService.GetConfigValue<bool>(CommonConst.SysCaptcha)) |
| | | { |
| | | // 判断验证码 |
| | | if (!_captcha.Validate(input.CodeId.ToString(), input.Code)) |
| | | throw Oops.Oh(ErrorCodeEnum.D0008); |
| | | } |
| | | //if (await _sysConfigService.GetConfigValue<bool>(CommonConst.SysCaptcha)) |
| | | //{ |
| | | // // 判断验证码 |
| | | // if (!_captcha.Validate(input.CodeId.ToString(), input.Code)) |
| | | // throw Oops.Oh(ErrorCodeEnum.D0008); |
| | | //} |
| | | |
| | | // 账号是否存在 |
| | | var user = await _sysUserRep.AsQueryable().Includes(t => t.SysOrg).ClearFilter().FirstAsync(u => u.Account.Equals(input.Account)); |