quanta icon indicating copy to clipboard operation
quanta copied to clipboard

Redirect after login / logout

Open Aldus83 opened this issue 7 years ago • 1 comments

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 avatar Nov 12 '18 14:11 Aldus83

Hello @damianoIlacqua https://github.com/quantacms/quanta/blob/da54fd0a03da729c8af788124bae926f8bcafecb/src/modules/user/hooks/user.hook.inc#L240 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 :-) !

Aldus83 avatar Jan 28 '19 16:01 Aldus83