Skip to content

Commit

Permalink
Tweaks to bugs from mergers, improvements and docu
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Morrical committed Nov 30, 2017
1 parent 705d035 commit ef2dc74
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
12 changes: 8 additions & 4 deletions application/config/go_config.php
Expand Up @@ -21,17 +21,21 @@

$config['go_redirect_url'] = 'home'; // change the starting route


$config['go_admin_login_default_route'] = '/admin/dashboard'; // after Admin login, which route should be served
$config['go_home_login_default_route'] = '/index'; // after Home login, which route should be served
$config['go_logo_default_route'] = 'admin/dashboard'; // when clicking logo, which route should be served, no starting slash

$config['go_logo_location'] = '';
$config['go_company_name'] = '{Your Company Name Here}';
$config['go_logo_email_path'] = '//your-website.com/assets/images/logo.png';

/* For Login/Dashboard, start here the rest of the path is built in the view, can be set to "" empty string for none */

/** SMTP */
$config['go_logo_location'] = '';

/* For Emails, pull from production URL */

$config['go_logo_email_path'] = '//your-website.com/assets/images/logo.png';

/** Login */

$config['go_dev_admin_login_username'] = "super-admin";
$config['go_dev_admin_login_password'] = "secret";
Expand Down
12 changes: 4 additions & 8 deletions application/controllers/Home.php
Expand Up @@ -8,16 +8,12 @@ public function __construct(){
$this->load->model('home_model','home');
}

/**
* This function fires in HOME login process, so that additional application
* specific logic can be injected at login runtime.
*/
public function home_login_helper($data) {

}

/**
* Home Logout
*/
public function logout() {
if(!empty($_SESSION['home'])) unset($_SESSION['home']);
unset($_SESSION['home']);
redirect(base_url() . 'login', 'refresh');
}

Expand Down
16 changes: 8 additions & 8 deletions application/models/Home_model.php
Expand Up @@ -15,6 +15,14 @@ public function admin_login_helper($user, $post) {
return;
}

/**
* This function fires in HOME login process, so that additional application
* specific logic can be injected at login runtime.
*/
public function home_login_helper($data) {
return;
}

/**
* Data queries for page load, any datasets for which you want to return result sets
* should have a matching route below and your requested data
Expand All @@ -34,12 +42,4 @@ public function queries($route) {
}
}

/**
* Home Logout
*/
public function logout() {
unset($_SESSION['home']);
redirect(base_url() . 'login', 'refresh');
}

}

0 comments on commit ef2dc74

Please sign in to comment.