diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index e14617c02..75686fb4e 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -58,7 +58,14 @@ class Index extends BasicAdmin { $version = Db::query('select version() as ver'); $version = array_pop($version); $this->assign('mysql_ver', $version['ver']); - $this->assign('title', '系统信息'); + if (session('user.username') === 'admin' && session('user.password') === '662af1cd1976f09a9f8cecc868ccc0a2') { + $alert = [ + 'type' => 'danger', + 'title' => '安全提示', + 'content' => '超级管理员默认密码未修改,建议马上修改!' + ]; + $this->assign('alert', $alert); + } return view(); } diff --git a/application/extra/view/admin.content.html b/application/extra/view/admin.content.html index 1caabf094..abdb2aeef 100644 --- a/application/extra/view/admin.content.html +++ b/application/extra/view/admin.content.html @@ -6,6 +6,15 @@ {/if}
+ {if isset($alert)} + + {/if} {block name="content"} {/block}