add
zongzhibin
2024-11-22 ab113ce9156d8ab54b3a4da9da6b3939875a928f
LA24030_LuLiPackageLine_Wms/Admin.NET.Core/Service/Auth/SysAuthService.cs
@@ -69,12 +69,12 @@
            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));