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 @@ +