Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

login redirect issue #369

Closed
muhammadkashif opened this issue Mar 14, 2012 · 7 comments
Closed

login redirect issue #369

muhammadkashif opened this issue Mar 14, 2012 · 7 comments

Comments

@muhammadkashif
Copy link

I create a new context module (dashboard), and redirect all of roles to that module.But when i set
$config['base_url'] = 'http://www.mydomainname.com';

it redirect all of role to content module on login

and another strange issue i face is, when i try to login first attempt always fails and give error don't have a right to access this page and on second attempt i am able to login and redirect to dashboard module.

@muhammadkashif
Copy link
Author

first time login
302 temporary redirect (dashboard)

and when second time login it words and dashboard shows

@og-shawn-crigger
Copy link
Contributor

What version of Bonfire are you using?

@muhammadkashif
Copy link
Author

0.5 version

302 moved temporarily error on login first time , not error on second attempt

@muhammadkashif
Copy link
Author

auth.php
line number 210

$this->login_destination = isset($user->login_destination) && !empty($user->login_destination) ? $user->login_destination : '';
return true;

this line is a problem when i comment it

//$this->login_destination = isset($user->login_destination) && !empty($user->login_destination) ? $user->login_destination : '';
$this->login_destination = SITE_AREA .'/dashboard';
return true;

and use SITE_AREA .'/dashboard'; i cant find this problem any more.

what will be the issue i cant understand if you find any reason , please share it

@og-shawn-crigger
Copy link
Contributor

Wouldn't it be easier to just change the setting for the Roles Login
Destination?

Should be in Settings -> Roles

Then pick Admin or Developer and set there login dest to /admin/dashboard

And that should fix your issue?

On 3/19/12 5:45 AM, muhammadkashif wrote:

auth.php
line number 210

$this->login_destination = isset($user->login_destination)&& !empty($user->login_destination) ? $user->login_destination : '';
return true;

this line is a problem when i comment it

//$this->login_destination = isset($user->login_destination)&& !empty($user->login_destination) ? $user->login_destination : '';
$this->login_destination = SITE_AREA .'/dashboard';
return true;

and use SITE_AREA .'/dashboard'; i cant find this problem any more.

what will be the issue i cant understand if you find any reason , please share it


Reply to this email directly or view it on GitHub:
#369 (comment)

@muhammadkashif
Copy link
Author

No that would not effect ant thing.I already set destination for every role to dashboard.
Problem is not they not redirect to dashboard. Problem is at first login try fail and redirect to home page (front controller) and second attempt we will be able to login and redirect to desire destination.

@ghost
Copy link

ghost commented May 16, 2012

@muhammadkashif @svizion I'm going to close this - it was opened 2 months ago and is for 0.5 which we are not developing anymore.

@ghost ghost closed this as completed May 16, 2012
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants