we are not using identityparser in AccountController. we can drop it from a constructor

This commit is contained in:
IgorSychev 2017-06-22 14:10:34 +03:00 committed by Igor Sychev
parent 09dfd9a246
commit dd100f643c

View File

@ -1,8 +1,6 @@
using System.Security.Claims; using System.Security.Claims;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.eShopOnContainers.WebMVC.ViewModels;
using Microsoft.eShopOnContainers.WebMVC.Services;
using Microsoft.AspNetCore.Http.Authentication; using Microsoft.AspNetCore.Http.Authentication;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication;
@ -12,10 +10,6 @@ namespace Microsoft.eShopOnContainers.WebMVC.Controllers
[Authorize] [Authorize]
public class AccountController : Controller public class AccountController : Controller
{ {
private readonly IIdentityParser<ApplicationUser> _identityParser;
public AccountController(IIdentityParser<ApplicationUser> identityParser) =>
_identityParser = identityParser;
public ActionResult Index() => View(); public ActionResult Index() => View();
[Authorize] [Authorize]