This commit is contained in:
@@ -339,7 +339,7 @@ namespace AyaNova
|
||||
app.UseAuthentication();
|
||||
|
||||
//Custom middleware to get user roles and put them into the request so
|
||||
//they can be authorized in routes
|
||||
//they can be authorized in routes.
|
||||
app.Use(async (context, next) =>
|
||||
{
|
||||
if (!context.User.Identity.IsAuthenticated)
|
||||
|
||||
Reference in New Issue
Block a user