mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-18 15:42:26 +00:00
Fix compilation error
This commit is contained in:
parent
461de3a299
commit
3f70563e1d
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ public class UserRequiredRedirectMiddleware : MiddlewareDBContext
|
|||
public UserRequiredRedirectMiddleware(RequestDelegate next) : base(next)
|
||||
{ }
|
||||
|
||||
public override async Task InvokeAsync(HttpContext ctx, Database.Database database)
|
||||
public override async Task InvokeAsync(HttpContext ctx, Database database)
|
||||
{
|
||||
WebToken? token = database.WebTokenFromRequest(ctx.Request);
|
||||
if (token == null || pathContains(ctx, "/logout"))
|
||||
|
@ -96,4 +96,4 @@ public class UserRequiredRedirectMiddleware : MiddlewareDBContext
|
|||
{
|
||||
return pathList.Any(path => ctx.Request.Path.StartsWithSegments(path));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue