改进后台登录超时操作;文章系统增加批量移动;批量隐藏和显示操作

This commit is contained in:
comm5v8
2019-05-17 14:56:08 +08:00
parent 8af95a2567
commit e181e2b568
7 changed files with 316 additions and 15 deletions
@@ -56,6 +56,12 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
}
//判断并解密
string key = SessionHelper.GetSession("des_key").ToString();
if (string.IsNullOrEmpty(key))
{
tip.Message = "页面访问超时,请刷新页面重新登录!";
tip.Other = "reload";
return Json(tip);
}
//解密
string username = "";
string password = "";
@@ -67,14 +73,15 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
catch (Exception exp)
{
NewLife.Log.XTrace.WriteException(exp);
tip.Message = "用户名或者密码错误!";
tip.Message = "页面访问超时,请刷新页面重新登录!";
tip.Other = "reload";
return Json(tip);
}
//验证用户
if (string.IsNullOrEmpty(username))
{
tip.Message = "请输入用户名!"+ key;
tip.Message = "请输入用户名!";
return Json(tip);
}
if (string.IsNullOrEmpty(password) || Utils.GetStringLength(password) < 5)