task changes - redirect bug fixed - captcha change
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user