style: 优化验证码样式
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Lazy.Captcha.Core" Version="2.0.7" />
|
||||
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.7" />
|
||||
<PackageReference Include="Lazy.Captcha.Core" Version="2.2.2" />
|
||||
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.9" />
|
||||
<PackageReference Include="Volo.Abp.BackgroundJobs.Hangfire" Version="$(AbpVersion)" />
|
||||
|
||||
</ItemGroup>
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
using Lazy.Captcha.Core.Generator;
|
||||
using Lazy.Captcha.Core;
|
||||
using Lazy.Captcha.Core.Generator;
|
||||
using Lazy.Captcha.Core.Generator.Image.Option;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using SkiaSharp;
|
||||
using Yi.Framework.Ddd.Application;
|
||||
using Yi.Framework.Rbac.Application.Contracts;
|
||||
using Yi.Framework.Rbac.Domain;
|
||||
@@ -21,7 +24,9 @@ namespace Yi.Framework.Rbac.Application
|
||||
|
||||
service.AddCaptcha(options =>
|
||||
{
|
||||
options.CaptchaType = CaptchaType.ARITHMETIC;
|
||||
options.CaptchaType = CaptchaType.NUMBER;
|
||||
options.ImageOption.BackgroundColor = SkiaSharp.SKColors.Transparent;
|
||||
options.ImageOption.FontFamily = DefaultFontFamilies.Prefix;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user