Changeset 6786 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/wporg-two-factor.php
- Timestamp:
- 02/27/2018 02:59:18 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/wporg-two-factor.php
r6785 r6786 353 353 * NOTE: It's assumed that the Two Factor details have been setup correctly previously. 354 354 */ 355 public staticfunction enable_two_factor( $user_id ) {355 public function enable_two_factor( $user_id ) { 356 356 $result = ( 357 357 update_user_meta( $user_id, self::PROVIDER_USER_META_KEY, 'WPORG_Two_Factor_Primary' ) && … … 370 370 * Simple handler to disable Two factor for a given user. 371 371 */ 372 public staticfunction disable_two_factor( $user_id ) {372 public function disable_two_factor( $user_id ) { 373 373 delete_user_meta( $user_id, self::PROVIDER_USER_META_KEY ); 374 374 delete_user_meta( $user_id, self::ENABLED_PROVIDERS_USER_META_KEY ); … … 565 565 } 566 566 567 if ( ! self::enable_two_factor( $user_id ) ) {567 if ( ! $this->enable_two_factor( $user_id ) ) { 568 568 wp_send_json_error( __( 'Unable to save Two Factor Authentication code. Please try again.', 'wporg' ) ); 569 569 } … … 586 586 } 587 587 588 if ( ! self::disable_two_factor( $user_id ) ) {588 if ( ! $this->disable_two_factor( $user_id ) ) { 589 589 wp_send_json_error( __( 'Unable to remove Two Factor Authentication code. Please try again.', 'wporg' ) ); 590 590 }
Note: See TracChangeset
for help on using the changeset viewer.