Making WordPress.org


Ignore:
Timestamp:
02/26/2018 03:56:52 AM (9 years ago)
Author:
dd32
Message:

2FA: Add a single method to enable/disable 2FA for a user.

This introduces a abstract Primary and Secondary provider class to allow us to alter how these providers handle generation behind the scenes.

See #77.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/providers/class-wporg-two-factor-totp.php

    r6735 r6753  
    1717                return $instance;
    1818        }
    19 
    20         public function __construct() {
    21                 // Ensure that the Two_Factor_Totp-specific code is added.
    22                 add_action( 'two-factor-user-options-' . __CLASS__, array( $this, 'user_two_factor_options' ) );
    23 
    24                 return parent::__construct();
    25         }
    26 
    27         /**
    28          * Returns the name of the provider.
    29          */
    30         public function get_label() {
    31                 return _x( 'Time Based One-Time Password (Google Authenticator, Authy, etc)', 'Provider Label', 'wporg' );
    32         }
    3319}
Note: See TracChangeset for help on using the changeset viewer.