Authorize account methods
This commit is contained in:
parent
45af463dbe
commit
6b57030087
@ -16,17 +16,22 @@ public class AccountController : Controller
|
||||
SignInManager = signInManager;
|
||||
}
|
||||
|
||||
|
||||
[Authorize]
|
||||
public IActionResult List()
|
||||
{
|
||||
return View(UserManager.Users);
|
||||
}
|
||||
|
||||
|
||||
[Authorize]
|
||||
public IActionResult Create()
|
||||
{
|
||||
return View(new IdentityUser());
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[Authorize]
|
||||
public async Task<IActionResult> Create([Bind] IdentityUser user, [Bind] string Password)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
|
Loading…
Reference in New Issue
Block a user