积分优化
This commit is contained in:
@@ -30,18 +30,26 @@ namespace FineUIPro.Web
|
||||
string password = string.Empty;
|
||||
if (HttpContext.Current != null && HttpContext.Current.Request != null)
|
||||
{
|
||||
if (Request.Cookies["u"] != null)
|
||||
//if (Request.Cookies["u"] != null)
|
||||
//{
|
||||
// account = HttpUtility.UrlDecode(Request.Cookies["u"].Value);
|
||||
//}
|
||||
//if (Request.Cookies["p"] != null)
|
||||
//{
|
||||
// password = Request.Cookies["p"].Value;
|
||||
//}
|
||||
if (HttpContext.Current.Request.Cookies["u"] != null)
|
||||
{
|
||||
account = HttpUtility.UrlDecode(Request.Cookies["u"].Value);
|
||||
account = HttpUtility.UrlDecode(HttpContext.Current.Request.Cookies["u"].Value);
|
||||
}
|
||||
if (Request.Cookies["p"] != null)
|
||||
if (HttpContext.Current.Request.Cookies["p"] != null)
|
||||
{
|
||||
password = Request.Cookies["p"].Value;
|
||||
password = HttpContext.Current.Request.Cookies["p"].Value;
|
||||
}
|
||||
}
|
||||
Session["CurrUser"] = BLL.Funs.DB.Sys_User.FirstOrDefault(x => x.Account == account && x.Password == Funs.EncryptionPassword(password));
|
||||
}
|
||||
|
||||
//var ssss = (Model.Sys_User)Session["CurrUser"];
|
||||
return (Model.Sys_User)Session["CurrUser"];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user