Title: Login security
Last modified: August 31, 2016

---

# Login security

 *  [pachterb](https://wordpress.org/support/users/pachterb/)
 * (@pachterb)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/login-security-2/)
 * Very good start on Socializer!
 * How can I control the login if users has not been activated. Currently the login
   does not seem to check if user account is active.
 * How can I update login/logout time stamp?
 * How can I update registration date?
 * Thank You for this plugin.
 * Pat…
 * [https://wordpress.org/plugins/super-socializer/](https://wordpress.org/plugins/super-socializer/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/login-security-2/#post-7194187)
 * Hi Pat,
 * Thanks for the appreciation 🙂
    We can customize the plugin to meet your needs.
   Would you send us detailed specifications at support[at]heateor[dot]com?
 *  Thread Starter [pachterb](https://wordpress.org/support/users/pachterb/)
 * (@pachterb)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/login-security-2/#post-7194189)
 * WordPress has written the specification for user authentication. Currently Socializer
   does not seem to be following that specification as it does not check if the 
   user account has been activated. If you follow the WordPress spec I think you
   will find all that is needed for proper authentication.
 * Thanks Pat…
 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/login-security-2/#post-7194194)
 * > WordPress has written the specification for user authentication. Currently 
   > Socializer does not seem to be following that specification as it does not 
   > check if the user account has been activated. If you follow the WordPress spec
   > I think you will find all that is needed for proper authentication.
 * Okay, we will improve this in next release. You can still contact us via email,
   if you have any other requirements.
 *  Thread Starter [pachterb](https://wordpress.org/support/users/pachterb/)
 * (@pachterb)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/login-security-2/#post-8391037)
 * I am still hoping for a solution that will check if a user account is active 
   on the site.
 * If a user account is deactivated in the backend, the user should not be able 
   to login. SS does not check if the account is active/inactive. Please suggest
   the proper placement in the SS plugin to make the check.
 * Thank you for a great plugin!
    Pat…
 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/login-security-2/#post-8392189)
 * Hi Pat,
 * As WordPress doesn’t provide any functionality to set user account active/inactive,
   there isn’t anything mentioned for this in official WP documentation.
    However,
   our plugin checks for error while creating a user, using [is_wp_error](https://codex.wordpress.org/Function_Reference/is_wp_error)
   function. You can use following code to check if user account is active:
 *     ```
       /**
        * Check before login if user account is active
        */
       function user_status_check( $user, $userLogin, $password ) {
       	if ( $YOUR_CONDITION_MEETS ) {
       		$user = null;
       	}
       	return $user;
       }
       add_filter( 'authenticate', 'user_status_check', 10, 3 );
       ```
   
 * You can place it in `functions.php` file of your theme/child theme.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Login security’ is closed to new replies.

 * ![](https://ps.w.org/super-socializer/assets/icon-128x128.png?rev=1866723)
 * [Social Share, Social Login and Social Comments Plugin - Super Socializer](https://wordpress.org/plugins/super-socializer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/super-socializer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/super-socializer/)
 * [Active Topics](https://wordpress.org/support/plugin/super-socializer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/super-socializer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/super-socializer/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Heateor Support](https://wordpress.org/support/users/heateor/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/login-security-2/#post-8392189)
 * Status: not resolved