Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect not working in AuthTrait #6

Closed
fefo-p opened this issue Aug 23, 2018 · 1 comment
Closed

redirect not working in AuthTrait #6

fefo-p opened this issue Aug 23, 2018 · 1 comment

Comments

@fefo-p
Copy link
Contributor

fefo-p commented Aug 23, 2018

Redirect is doing nothing here. No companies either.
Don't know exactly why, but changing redirect to header works fine.
I know it's not a solution, but it helps to continue with the rest in the meantime.

         if (empty($uri))
         {
+            header("Location: ".route_to('login'));
+            die();
             redirect( route_to('login') );
         }

However, header will not take into account the redirect_uri passed as a GET parameter

@fefo-p
Copy link
Contributor Author

fefo-p commented Aug 24, 2018

Already in pull request()

@fefo-p fefo-p closed this as completed Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant