Welcome Guest, Not a member yet? Register   Sign In
CommunityAuth Login/Logout Hooks/Functions
#4

Community Auth has a method in Auth_Controller called post_auth_hook, and so MY_Controller is a great place to extend that method and do what you want to do when they log in. Unfortunately, there is not yet a hook called at logout. This really wouldn't be hard to implement though. In the logout method of your controller that handles logout, simply check to see if the person is logged in before logging them out. This check provides you with an opportunity to log the details.
Reply


Messages In This Thread
RE: CommunityAuth Login/Logout Hooks/Functions - by skunkbad - 03-02-2018, 02:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB