Jump to content

Login Redirect | phpVMS


Aaryan

Recommended Posts

Hello Peeps.

I am working on a new Crew Center. I have renamed the Profile Module as Dashboard. My frontpage_main.php looks like this

 

<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>

<?php if(Auth::LoggedIn()) {
	header('Location:'.SITE_URL.'/dashboard');
} else {
	header('Location:'.SITE_URL.'/login');
} ?>

 

Now after I log in it still redirects me to Profile Module. I want it to be redirected to Dashboard Module as http://crew.siteurl.com/dashboard. I tried to dig deeper but was afraid to mess up. So any leads or fixes folks?

Sincerely,

Aaryan Kapoor

Link to comment
Share on other sites

  • Moderators

In the login form there is a hidden field which includes the directory where you want to redirect someone who logs into your system. Open lib/skins/your_skin/login_form.php or core/templates/login_form.php and there should be a field like this:

<input type="hidden" name="redir" value="index.php/profile" />

replace "index.php/profile" to "index.php/dashboard and it should work the way you want.

  • Like 1
Link to comment
Share on other sites

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...