Hello everyone.
I would like to add an extra option to the
History Logger Plugin. I need to log logins and logouts of site users. I modified the file function php. I found in function hsl_create_user_log. After this function i add :
// after_login
osc_add_hook('after_login', function($id) {
$user = User::newInstance()->findByPrimaryKey($id);
hsl_create_user_log($user, 'LOGIN');
});
After the change, I don't see any changes in the plugin's operation
What files should I make corrections to?
What hook should I use for this registration?
Regards,
SÅ‚awek