From c74c156d93c71a72380edef356e778e398200eff Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Mon, 28 Nov 2016 12:45:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8A=9F=E8=83=BD=EF=BC=9A?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E9=85=8D=E7=BD=AE=E8=B6=85?= =?UTF-8?q?=E7=BA=A7=E7=AE=A1=E7=90=86=E5=91=98=E4=B8=8E=E5=AF=86=E7=A0=81?= =?UTF-8?q?=EF=BC=8C=E7=94=B1LgbPricipal=E7=B1=BB=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Controllers/HomeController.cs | 4 ++-- Bootstrap.Admin/Web.config | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Bootstrap.Admin/Controllers/HomeController.cs b/Bootstrap.Admin/Controllers/HomeController.cs index a45f8bb6..f985b8b3 100644 --- a/Bootstrap.Admin/Controllers/HomeController.cs +++ b/Bootstrap.Admin/Controllers/HomeController.cs @@ -51,9 +51,9 @@ namespace Bootstrap.Admin.Controllers var model = new LoginModel(); if (string.IsNullOrEmpty(userName)) return View(model); model.UserName = userName; - if (LgbPrincipal.IsAdmin(userName) || UserHelper.Authenticate(userName, password)) + if (LgbPrincipal.IsAdmin(userName, password) || UserHelper.Authenticate(userName, password)) { - FormsAuthentication.RedirectFromLoginPage(userName, false); + FormsAuthentication.RedirectFromLoginPage(userName, remember == "true"); } return View(model); } diff --git a/Bootstrap.Admin/Web.config b/Bootstrap.Admin/Web.config index af5e8dfc..3ae70264 100644 --- a/Bootstrap.Admin/Web.config +++ b/Bootstrap.Admin/Web.config @@ -17,6 +17,7 @@ +