Jump to content

iCrew LITE - fix default landing page


Recommended Posts

Posted (edited)

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
  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...