WordPress.org

Making WordPress.org

Changeset 6758


Ignore:
Timestamp:
02/26/2018 07:02:08 AM (3 years ago)
Author:
tellyworth
Message:

2FA: fix issue with inconsistent usermeta. 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

    r6757 r6758  
    201201        // True if at least one provider method was set.
    202202        return (
    203             update_user_meta( $user_id, self::PROVIDER_USER_META_KEY,          'WPORG_Two_Factor_Primary' ) ||
     203            update_user_meta( $user_id, self::PROVIDER_USER_META_KEY,          'WPORG_Two_Factor_Primary' ) &&
    204204            update_user_meta( $user_id, self::ENABLED_PROVIDERS_USER_META_KEY, [ 'WPORG_Two_Factor_Primary', 'WPORG_Two_Factor_Secondary' ] )
    205205        );
Note: See TracChangeset for help on using the changeset viewer.