Plugin Directory

Changeset 1453845


Ignore:
Timestamp:
07/13/2016 04:11:50 AM (10 years ago)
Author:
timfield
Message:

Anonymous user login fix

Location:
thisdata/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • thisdata/trunk/Events.php

    r1446955 r1453845  
    6767
    6868    static function trackLogIn($args) {
    69         // https://developer.wordpress.org/reference/hooks/wp_login/
    70         return  static::userNameHook($args);
     69
     70        // @see https://developer.wordpress.org/reference/hooks/wp_login/
     71        list($username, $user) = $args['hookArgs'];
     72
     73        if( empty($username) || !($user instanceof \WP_User) ) {
     74            //This should never happen.  @see wp-includes/user.php signon
     75            //But note that if a plugin returned something other than WP_Error on
     76            //wp_authenticate ( null for example ) then we would be in trouble.
     77            //Without this check, we would record an anonymous login, which isn't correct
     78            //\Analog::log('Invalid arguments passed from wp_login hook', \Analog::DEBUG);
     79            return null;
     80        }
     81
     82        return static::userNameHook($args);
    7183    }
    7284
  • thisdata/trunk/composer.json

    r1446955 r1453845  
    55    "require": {
    66        "thisdata/api": "^0.1.3",
    7         "mohiohio/wordpress-lib": "^0.1"
    8     },
    9     "require-dev": {
     7        "mohiohio/wordpress-lib": "^0.1",
    108        "analog/analog": "^1.0"
    119    },
  • thisdata/trunk/index.php

    r1448286 r1453845  
    33Plugin Name: ThisData for WordPress
    44Plugin URI: https://thisdata.com/
    5 Version: 1.1.2
     5Version: 1.1.3
    66Description: ThisData provides login intelligence. We notify you when one of your users or customers has their account accessed from somewhere unusual or by a device they don't normally use. It gives your customers the confidence that you're taking security seriously and doing everything you can to protect their account.
    77Text Domain: thisdata-plugin
  • thisdata/trunk/readme.txt

    r1448286 r1453845  
    11=== Login Security by ThisData ===
    2 Contributors: timfield, thisdata
     2Contributors: thisdata, timfield
    33Donate link: https://thisdata.com/upgrade
    44Tags: security, phishing, login, authentication
    55Requires at least: 4.5
    66Tested up to: 4.5.3
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.