task changes - redirect bug fixed - captcha change

This commit is contained in:
SamSys
2024-08-27 20:20:40 +03:30
parent 4b57df060b
commit 4d0370aa70
36 changed files with 910 additions and 1413 deletions

View File

@@ -14,6 +14,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using ServiceHost.Hubs;
using WebEssentials.AspNetCore.Pwa;
using ServiceHost.MiddleWare;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorPages()
@@ -55,8 +56,8 @@ builder.Services.Configure<CookiePolicyOptions>(options =>
builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme, o =>
{
o.LoginPath = new PathString("/Index");
o.LogoutPath = new PathString("/Index");
o.LoginPath = new PathString("/");
o.LogoutPath = new PathString("/index");
o.AccessDeniedPath = new PathString("/AccessDenied");
o.ExpireTimeSpan = TimeSpan.FromHours(10);
@@ -165,11 +166,12 @@ app.UseRouting();
app.UseAuthorization();
if (builder.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
#region Mahan
}
app.UseLoginHandlerMiddleware();
//app.UseCheckTaskMiddleware();
#endregion
app.MapHub<CreateContractTarckingHub>("/trackingHub");