From f16d0ddffe2565d4d68ca7e4cf9cb75d1b1836f0 Mon Sep 17 00:00:00 2001 From: IgorSychev Date: Thu, 22 Jun 2017 14:43:26 +0300 Subject: [PATCH] 2 Views survived after identity redesign. In AccountController we don't have view for index action it's also looks like a some rudement --- .../WebMVC/Controllers/AccountController.cs | 4 +- src/Web/WebMVC/Views/Account/Login.cshtml | 64 ----------- src/Web/WebMVC/Views/Account/Register.cshtml | 106 ------------------ 3 files changed, 1 insertion(+), 173 deletions(-) delete mode 100644 src/Web/WebMVC/Views/Account/Login.cshtml delete mode 100644 src/Web/WebMVC/Views/Account/Register.cshtml diff --git a/src/Web/WebMVC/Controllers/AccountController.cs b/src/Web/WebMVC/Controllers/AccountController.cs index ff337a566..9ec896e13 100644 --- a/src/Web/WebMVC/Controllers/AccountController.cs +++ b/src/Web/WebMVC/Controllers/AccountController.cs @@ -9,9 +9,7 @@ namespace Microsoft.eShopOnContainers.WebMVC.Controllers { [Authorize] public class AccountController : Controller - { - public ActionResult Index() => View(); - + { [Authorize] public async Task SignIn(string returnUrl) { diff --git a/src/Web/WebMVC/Views/Account/Login.cshtml b/src/Web/WebMVC/Views/Account/Login.cshtml deleted file mode 100644 index 031998d69..000000000 --- a/src/Web/WebMVC/Views/Account/Login.cshtml +++ /dev/null @@ -1,64 +0,0 @@ -@using System.Collections.Generic -@using Microsoft.AspNetCore.Http -@using Microsoft.AspNetCore.Http.Authentication -@model LoginViewModel -@inject SignInManager SignInManager - -@{ - ViewData["Title"] = "Log in"; -} -
- -
- - -@section Scripts { - @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } -} diff --git a/src/Web/WebMVC/Views/Account/Register.cshtml b/src/Web/WebMVC/Views/Account/Register.cshtml deleted file mode 100644 index 74a417e86..000000000 --- a/src/Web/WebMVC/Views/Account/Register.cshtml +++ /dev/null @@ -1,106 +0,0 @@ -@model RegisterViewModel -@{ - ViewData["Title"] = "Register"; -} -
- -
-
-
-

CREATE NEW ACCOUNT

-
-
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
-

-
-
- - - -
-
-
- - - -
-
- - - -
-
-

-
- -
-

-
-
-@section Scripts { - @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } -} -