Browse Source

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

pull/222/head
IgorSychev 7 years ago
committed by Igor Sychev
parent
commit
dd100f643c
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      src/Web/WebMVC/Controllers/AccountController.cs

+ 0
- 6
src/Web/WebMVC/Controllers/AccountController.cs View File

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


Loading…
Cancel
Save