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

[Idea] New hook - after_login #567

Closed
TurbineJesse opened this issue Dec 17, 2012 · 4 comments
Closed

[Idea] New hook - after_login #567

TurbineJesse opened this issue Dec 17, 2012 · 4 comments
Labels

Comments

@TurbineJesse
Copy link
Contributor

There exists hooks for after a user registers and also after they logout. However, there is currently no hook for after they successfully login.

I suggest a new hook, perhaps called after_login, that runs immediately after the login is successful.

Perhaps place it in the file, login.php, around line 110, like this:

....
osc_run_hook("after_login");
$this->redirectTo( $url_redirect ) ;
....

@legionwon
Copy link

how can i add this function in 3.2?

@TurbineJesse
Copy link
Contributor Author

_CONEJO said he'd add it, but I didn't see it yet. So I just put in a pull-request to have it added. You can view it here:

Pull request:
#571

You can view the actual suggested code changes here:
TurbineJesse@170d330

@trains58554
Copy link
Contributor

I could also see the use of an after logout hook as well. I found the logout hook in 3.1 so I guess I do not have a hook suggestion. :)

Jay

@conejoninja
Copy link
Member

Hi,

I'm having a few days for holidays/xmas. Once I get a little free time I will add this (for some reason the pull-request could not be auto-merged ;( )

Sorry for the wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants