/**
  * Register actions and callbacks with WP Engine
  */
 public function register_actions()
 {
     $this->wp_facade->add_shortcode('launchkey_login', array($this, 'launchkey_shortcode'));
     $this->wp_facade->add_action('login_form', array(&$this, 'launchkey_form'));
     // Register the authentication controller as the first filter in the chain
     $this->wp_facade->add_filter('authenticate', array($this, 'authenticate'), 0, 3);
     // Register logout handler
     $this->wp_facade->add_filter('wp_logout', array($this, 'logout'));
 }
 /**
  * Register actions and callbacks with WP Engine
  *
  * @since 1.0.0
  */
 public function register_actions()
 {
     $this->wp_facade->add_action('login_form', array(&$this, 'launchkey_form'));
     $this->wp_facade->add_action('wp_login', array(&$this, 'launchkey_pair'), 1, 2);
     $this->wp_facade->add_action('wp_logout', array(&$this, 'launchkey_logout'), 1, 2);
     $this->wp_facade->add_shortcode('launchkey_login', array($this, 'launchkey_shortcode'));
     if ($this->wp_facade->is_admin()) {
         $this->register_admin_actions();
     }
 }
 /**
  * Register actions and callbacks with WP Engine
  */
 public function register_actions()
 {
     $this->wp_facade->add_shortcode('launchkey_login', array($this, 'launchkey_shortcode'));
     $this->wp_facade->add_action('login_form', array(&$this, 'launchkey_form'));
     // Register the authentication controller as the first filter in the chain
     $this->wp_facade->add_filter('authenticate', array($this, 'authenticate'), 0, 3);
     // Register logout handler
     $this->wp_facade->add_filter('wp_logout', array($this, 'logout'));
     // Place this at the end of the init chain to only worry about users that are otherwise considered
     // authenticated
     $this->wp_facade->add_filter('init', array($this, 'launchkey_still_authenticated_page_load'), 999, 3);
     /**
      * Jack into the WordPress heartbeat process to log the user out based on server side de-orbit events
      * being processed.  The authentication check is performed on "heartbeat_send" filter so we ensure we verify
      * before that by using the "heartbeat_received" filter.
      *
      * @see wp_ajax_heartbeat
      */
     $this->wp_facade->add_filter('heartbeat_received', array($this, 'launchkey_still_authenticated_heartbeat'));
 }