This commit is contained in:
2019-01-03 18:29:06 +00:00
parent 667f67d275
commit b9272b6215
2 changed files with 2 additions and 2 deletions

View File

@@ -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)