Viewing 14 replies - 1 through 14 (of 14 total)
  • Stream does track user logins. Have you had any problems with this specific feature ?

    Thread Starter Blutarsky

    (@blutarsky)

    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.

    Thread Starter Blutarsky

    (@blutarsky)

    Besides the plugin, I am using a custom technique to login users using the function wp_signon
    Could this be the problem?

    Thread Starter Blutarsky

    (@blutarsky)

    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.

    Thread Starter Blutarsky

    (@blutarsky)

    Ah yes logging in regularly it is logged correctly…
    Maybe when using code to login using wp_signon function will fail?

    Thread Starter Blutarsky

    (@blutarsky)

    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?

    Thread Starter Blutarsky

    (@blutarsky)

    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.

    Thread Starter Blutarsky

    (@blutarsky)

    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.

    Thread Starter Blutarsky

    (@blutarsky)

    Thank you 🙂

    Thread Starter Blutarsky

    (@blutarsky)

    Fixed in version 1.4.5. Now working, Thanks 🙂

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Possible to log user login?’ is closed to new replies.