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 after login / logout #195

Open
Aldus83 opened this issue Nov 12, 2018 · 1 comment
Open

Redirect after login / logout #195

Aldus83 opened this issue Nov 12, 2018 · 1 comment

Comments

@Aldus83
Copy link
Collaborator

Aldus83 commented Nov 12, 2018

At the moment, login and logout action, after being performed, redirect the user to the homepage.
We need to support for the [LOGIN] qTag a redirect attribute (as we do with the [REGISTER] qTag) allowing to setup a target for redirecting the user after a successful login/logout.

@Aldus83
Copy link
Collaborator Author

Aldus83 commented Jan 28, 2019

Hello @damianoIlacqua

$response->redirect = NodeFactory::current($env)->getName();

here is where the redirect variable is valorized in the register hook.

https://github.com/quantacms/quanta/blob/master/src/modules/user/hooks/user.hook.inc#L129
This is the login hook

https://github.com/quantacms/quanta/blob/master/src/modules/user/classes/Common/User.class.php#L210
This is the login function of the User object

Not the easiest one to get started :-) !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Quanta
  
Awaiting triage
Development

No branches or pull requests

2 participants