PHP Class New_Device_Notification, vip-mu-plugins-public

************************************************************************* Plugin Name: New Device Notification Description: Uses a cookie to identify new devices that are used to log in. On new device detection, an e-mail is sent. This provides some basic improved security against compromised accounts. Author: Automattic VIP Team Author URI: http://vip.wordpress.com/ Version: 2.0 License: GPLv2 ************************************************************************
Mostrar archivo Open project: Automattic/vip-mu-plugins-public

Public Properties

Property Type Description
$cookie_hash
$cookie_name 1 week
$grace_period This is to get all of the normal users into the logs and avoid spamming inboxes.

Public Methods

Method Description
__construct ( )
get_standard_message ( $user_obj, $args )
is_user_from_valid_ip ( $ip )
maybe_send_email ( $send_email, $user_info )
notify_of_new_device ( )
set_cookie ( )
start ( )
verify_cookie ( )

Method Details

__construct() public method

public __construct ( )

get_standard_message() public method

public get_standard_message ( $user_obj, $args )

is_user_from_valid_ip() public method

public is_user_from_valid_ip ( $ip )

maybe_send_email() public method

public maybe_send_email ( $send_email, $user_info )

notify_of_new_device() public method

start() public method

public start ( )

Property Details

$grace_period public_oe property

This is to get all of the normal users into the logs and avoid spamming inboxes.
public $grace_period