重构代码:删除不使用的Account/Mobile

This commit is contained in:
Argo-MacBookPro 2018-11-05 11:36:30 +08:00
parent cb1cc21ef9
commit 2014954561
2 changed files with 3 additions and 25 deletions

View File

@ -29,6 +29,7 @@ namespace Bootstrap.Admin.Controllers
{
return User.Identity.IsAuthenticated ? (ActionResult)Redirect("~/Home/Index") : View("Login", new ModelBase());
}
/// <summary>
/// Login the specified userName, password and remember.
/// </summary>
@ -49,6 +50,7 @@ namespace Bootstrap.Admin.Controllers
var originUrl = Request.Query[CookieAuthenticationDefaults.ReturnUrlParameter].FirstOrDefault() ?? "~/Home/Index";
return Redirect(originUrl);
}
/// <summary>
/// Logout this instance.
/// </summary>
@ -58,6 +60,7 @@ namespace Bootstrap.Admin.Controllers
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
return Redirect("~" + CookieAuthenticationDefaults.LoginPath);
}
/// <summary>
/// Accesses the denied.
/// </summary>
@ -69,13 +72,5 @@ namespace Bootstrap.Admin.Controllers
ViewBag.ReturnUrl = string.IsNullOrEmpty(returnUrl) ? Url.Content("~/Home/Index") : returnUrl;
return View();
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Mobile()
{
return View();
}
}
}

View File

@ -1,17 +0,0 @@
@{
ViewBag.Title = "客户端测试";
}
@section css {
<style type="text/css">
label {
word-break: break-all;
}
section {
padding-top: 15px;
}
</style>
}
<section class="container-fluid">
@await Html.PartialAsync("_Mobile")
</section>