diff --git a/sites/default/users/admin.json b/sites/default/users/admin.json index 3b5dc72..ee449b1 100755 --- a/sites/default/users/admin.json +++ b/sites/default/users/admin.json @@ -1,5 +1,5 @@ { - "username": "admin", - "password": "password", - "passconf": "password" + "username": "admin", + "password": "password", + "passconf": "password" } \ No newline at end of file diff --git a/system/application/core/Admin_Controller.php b/system/application/core/Admin_Controller.php index 2b3e785..aafd892 100644 --- a/system/application/core/Admin_Controller.php +++ b/system/application/core/Admin_Controller.php @@ -8,6 +8,12 @@ public function __construct() // set theme $this->template->set_theme($this->config->item('admin_theme')); + + if(file_exists('sites/'.SITE_SLUG.'/users/admin.json')){ + $admin = json_decode(file_get_contents('sites/'.SITE_SLUG.'/users/admin.json'), true); + if(isset($admin['password']) && $admin['password'] == 'password') + $this->template->set('warning', 'Change your default admin password to secure one in Users settings page first.'); + } } } \ No newline at end of file