Stream does track user logins. Have you had any problems with this specific feature ?
Well i have logged in with an author’s login and no event was tracked in the dashboard…maybe my settings are wrong?
You can check Stream settings so you make sure you have not excluded that specific rule, or the login action altogether.
And just to make sure, no user login events are tracked at all ? or just author logins ?
Also make sure you’re running the latest version of Stream.
Besides the plugin, I am using a custom technique to login users using the function wp_signon
Could this be the problem?
I am running latest versions and no exclusion is set
Yes, this is probably the cause of your problem, however .. wp_signon
does fire the wp_login
action which we hook into, but you need to make sure that the final do_action('wp_login', ...)
receives proper expected arguments.
Ah yes logging in regularly it is logged correctly…
Maybe when using code to login using wp_signon function will fail?
I’m using the “password protected” plugin that will force users to login using a custom form and a custom password. I use this plugin to prevent access to the whole site from unwanted users.
Once done, if the first custom password management login is successfull, the code will signon on users accordingly:
/* begin my code */
$creds = array();
$creds['user_login'] = 'username';
$creds['user_password'] = 'thepassword';
$creds['remember'] = true;
$user = wp_signon( $creds, false );
if ( is_wp_error($user) )
echo $user->get_error_message();
// run it before the headers and cookies are sent
add_action( 'after_setup_theme', 'custom_login' );
/* end my code */
Should I modify this somehow?
I see that wp_login is deprecated and replaced by wp_signon ….
What can we do?
[Moderator Note: No bumping, thank you.]
Can you please check if Stream is tracking normal user login from wp-login.php ? eg: for administrators.
We need to narrow down possible causes.
Yes it does track correctly ordinary logins & logouts
I’ve just opened a new ticket at our GitHub repo ( https://github.com/x-team/wp-stream/issues/434 ) so we can investigate this further.
Thanks for reporting this! We’ll get back to you once the ticket has been looked into.
Fixed in version 1.4.5. Now working, Thanks 🙂