From 2014954561d05f0b6f8600897890e68e04cc1b59 Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Mon, 5 Nov 2018 11:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=BB=A3=E7=A0=81=EF=BC=9A?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E4=BD=BF=E7=94=A8=E7=9A=84Account/M?= =?UTF-8?q?obile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/AccountController.cs | 11 +++-------- Bootstrap.Admin/Views/Account/Mobile.cshtml | 17 ----------------- 2 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 Bootstrap.Admin/Views/Account/Mobile.cshtml diff --git a/Bootstrap.Admin/Controllers/AccountController.cs b/Bootstrap.Admin/Controllers/AccountController.cs index 883d3e53..56433c25 100644 --- a/Bootstrap.Admin/Controllers/AccountController.cs +++ b/Bootstrap.Admin/Controllers/AccountController.cs @@ -29,6 +29,7 @@ namespace Bootstrap.Admin.Controllers { return User.Identity.IsAuthenticated ? (ActionResult)Redirect("~/Home/Index") : View("Login", new ModelBase()); } + /// /// Login the specified userName, password and remember. /// @@ -49,6 +50,7 @@ namespace Bootstrap.Admin.Controllers var originUrl = Request.Query[CookieAuthenticationDefaults.ReturnUrlParameter].FirstOrDefault() ?? "~/Home/Index"; return Redirect(originUrl); } + /// /// Logout this instance. /// @@ -58,6 +60,7 @@ namespace Bootstrap.Admin.Controllers await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); return Redirect("~" + CookieAuthenticationDefaults.LoginPath); } + /// /// Accesses the denied. /// @@ -69,13 +72,5 @@ namespace Bootstrap.Admin.Controllers ViewBag.ReturnUrl = string.IsNullOrEmpty(returnUrl) ? Url.Content("~/Home/Index") : returnUrl; return View(); } - /// - /// - /// - /// - public ActionResult Mobile() - { - return View(); - } } } \ No newline at end of file diff --git a/Bootstrap.Admin/Views/Account/Mobile.cshtml b/Bootstrap.Admin/Views/Account/Mobile.cshtml deleted file mode 100644 index 0e13df39..00000000 --- a/Bootstrap.Admin/Views/Account/Mobile.cshtml +++ /dev/null @@ -1,17 +0,0 @@ -@{ - ViewBag.Title = "客户端测试"; -} -@section css { - -} -
- @await Html.PartialAsync("_Mobile") -
\ No newline at end of file