Making WordPress.org


Ignore:
Timestamp:
02/26/2018 07:06:12 AM (7 years ago)
Author:
dd32
Message:

2FA: Enable Email, Slack, and Backup Codes as the backup 2FA method.

See #77.

File:
1 edited

Legend:

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

    r6758 r6759  
    199199     */
    200200    public static function enable_two_factor( $user_id ) {
    201         // True if at least one provider method was set.
    202201        return (
    203202            update_user_meta( $user_id, self::PROVIDER_USER_META_KEY,          'WPORG_Two_Factor_Primary' ) &&
     
    223222    public static function user_two_factor_options( $user ) {
    224223        wp_enqueue_script( 'two-factor-edit', plugins_url( 'js/profile-edit.js' , __FILE__ ), [ 'jquery' ], 1, true );
    225         wp_localize_script( 'two-factor-edit', 'two_factor_edit', array( 
     224        wp_localize_script( 'two-factor-edit', 'two_factor_edit', array(
    226225            'ajaxurl' => admin_url( 'admin-ajax.php' ),
    227226        ) );
Note: See TracChangeset for help on using the changeset viewer.