Lower case role tweaks.

This commit is contained in:
JudahGabriel
2017-10-17 10:18:25 -05:00
parent 2f5b1ca11b
commit 1f5ee40119
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ namespace Sample.Controllers
.Query<AppUser>()
.ToListAsync();
ViewBag.MessageFromRaven = $"Hi from RavenDB! There are {users.Count} users in the database. (◕‿◕✿)";
return View();
}
@@ -40,7 +40,7 @@ namespace Sample.Controllers
}
// Require that the user be in the Admin role.
[Authorize(Roles = "Admin")]
[Authorize(Roles = "admin")] // Authorize should always use lower-case role names.
public IActionResult AuthAdmin()
{
return View();