添加验证码

This commit is contained in:
陈淳
2022-09-17 18:09:18 +08:00
parent 7905f82d65
commit 2a8d436267
2 changed files with 5 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ using Yi.Framework.Language;
using Microsoft.Extensions.Localization;
using Yi.Framework.WebCore.AttributeExtend;
using Yi.Framework.WebCore.SignalRHub;
using Hei.Captcha;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddCommandLine(args);
@@ -117,6 +117,8 @@ builder.Services.AddLocalizerService();
//<2F><><EFBFBD><EFBFBD>signalR
#endregion
builder.Services.AddSignalR();
builder.Services.AddHeiCaptcha();
//-----------------------------------------------------------------------------------------------------------
var app = builder.Build();
#region
@@ -138,6 +140,7 @@ ServiceLocator.Instance = app.Services;
//<2F><><EFBFBD><EFBFBD>ץȡ<D7A5><C8A1><EFBFBD><EFBFBD>ע<EFBFBD><D7A2>
#endregion
//app.UseErrorHandlingService();
#region
//<2F><>̬<EFBFBD>ļ<EFBFBD>ע<EFBFBD><D7A2>
#endregion

View File

@@ -6,6 +6,7 @@
<ItemGroup>
<PackageReference Include="EPPlus" Version="5.8.4" />
<PackageReference Include="Hei.Captcha" Version="0.3.0" />
<PackageReference Include="Microsoft.Extensions.Localization.Abstractions" Version="6.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="SharpZipLib" Version="1.3.3" />