完成首次运行初始化安装程序
This commit is contained in:
@@ -21,6 +21,13 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
|
||||
{
|
||||
return Redirect("/AdminCP");
|
||||
}
|
||||
|
||||
bool hasData = AdminMenu.FindCount(null, null, null, 0, 0) > 0;
|
||||
if (!hasData)
|
||||
{
|
||||
return Redirect("/Home/Install");
|
||||
}
|
||||
|
||||
string key = Utils.GetRandomChar(12);
|
||||
SessionHelper.WriteSession("des_key", key);
|
||||
ViewBag.key = key;
|
||||
|
||||
Reference in New Issue
Block a user