/** * Class constructor. Sets up hooks, etc. */ protected function __construct() { add_action('two-factor-user-options-' . __CLASS__, array($this, 'user_two_factor_options')); add_action('personal_options_update', array($this, 'user_two_factor_options_update')); add_action('edit_user_profile_update', array($this, 'user_two_factor_options_update')); return parent::__construct(); }
/** * Class constructor. * * @since 0.1-dev */ protected function __construct() { add_action('two-factor-user-options-' . __CLASS__, array($this, 'user_options')); add_action('admin_notices', array($this, 'admin_notices')); add_action('wp_ajax_two_factor_backup_codes_generate', array($this, 'ajax_generate_json')); return parent::__construct(); }
/** * Class constructor. * * @since 0.1-dev */ protected function __construct() { add_action('two-factor-user-options-' . __CLASS__, array($this, 'user_options')); add_action('admin_notices', array($this, 'admin_notices')); add_action('wp_ajax_two_factor_set_key', array($this, 'ajax_set_key')); return parent::__construct(); }
/** * Class constructor. * * @since 0.1-dev */ protected function __construct() { add_action('two-factor-user-options-' . __CLASS__, array($this, 'user_options')); add_action('show_user_security_settings', array(__CLASS__, 'show_user_profile')); add_action('user_profile_twilio', array(__CLASS__, 'show_twilio_item')); add_action('personal_options_update', array(__CLASS__, 'catch_submission'), 0); add_action('edit_user_profile_update', array(__CLASS__, 'catch_submission'), 0); return parent::__construct(); }
/** * Class constructor. Sets up hooks, etc. */ protected function __construct() { add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ) ); add_action( 'wp_ajax_two-factor-totp-get-code', array( $this, 'ajax_new_code' ) ); add_action( 'wp_ajax_two-factor-totp-verify-code', array( $this, 'ajax_verify_code' ) ); add_action( 'two-factor-user-options-' . __CLASS__, array( $this, 'user_two_factor_options' ) ); add_action( 'two-factor-admin-options-' . __CLASS__, array( $this, 'description' ) ); add_action( 'personal_options_update', array( $this, 'user_two_factor_options_update' ) ); add_action( 'edit_user_profile_update', array( $this, 'user_two_factor_options_update' ) ); return parent::__construct(); }
/** * Class constructor. * * @since 0.1-dev */ protected function __construct() { require_once TWO_FACTOR_DIR . 'includes/Yubico/U2F.php'; self::$u2f = new u2flib_server\U2F(set_url_scheme('//' . $_SERVER['HTTP_HOST'])); require_once TWO_FACTOR_DIR . 'providers/class.two-factor-fido-u2f-admin.php'; Two_Factor_FIDO_U2F_Admin::add_hooks(); add_action('login_enqueue_scripts', array($this, 'login_enqueue_assets')); add_action('two-factor-user-options-' . __CLASS__, array($this, 'user_options')); return parent::__construct(); }
/** * Class constructor. * * @since 0.1-dev */ protected function __construct() { $app_url_parts = parse_url(home_url()); $app_url = sprintf('%s://%s', $app_url_parts['scheme'], $app_url_parts['host']); require_once TWO_FACTOR_DIR . 'includes/Yubico/U2F.php'; self::$u2f = new u2flib_server\U2F($app_url); require_once TWO_FACTOR_DIR . 'providers/class.two-factor-fido-u2f-admin.php'; Two_Factor_FIDO_U2F_Admin::add_hooks(); add_action('login_enqueue_scripts', array($this, 'login_enqueue_assets')); add_action('two-factor-user-options-' . __CLASS__, array($this, 'user_options')); return parent::__construct(); }
/** * Class constructor. * * @since 0.1-dev */ protected function __construct() { add_action('two-factor-user-options-' . __CLASS__, array($this, 'user_options')); return parent::__construct(); }