Jump to content
Sign in to follow this  
aktorsyl

iCrew LITE - fix default landing page

Recommended Posts

Hi guys - the default installation of iCrew LITE sometimes does not automatically go to the login page if you visit the site while not logged in, or when your login session expires. I'm posting the fix below. Hope this helps some of you:

 

In index.php in the root of phpvms:

define('CODON_DEFAULT_MODULE', 'Frontpage');

change to:

define('CODON_DEFAULT_MODULE', 'Profile');

 

And in modules/Profile/Profile.php:

public function index()
  {
    if(!Auth::LoggedIn()) {
      $this->set('message', 'You must be logged in to access this feature!');
      $this->render('core_error.php');
      return;

change to:

public function index()
  {
    if(!Auth::LoggedIn()) {
      $this->render('login_form.php');
      return;
Edited by aktorsyl

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×