Changeset 6759 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/providers/class-wporg-two-factor-primary.php
- Timestamp:
- 02/26/2018 07:06:12 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/providers/class-wporg-two-factor-primary.php
r6753 r6759 24 24 return _x( 'Time Based One-Time Password (Google Authenticator, Authy, etc)', 'Provider Label', 'wporg' ); 25 25 } 26 27 public function validate_authentication( $user, $code = '' ) { 28 $key = get_user_meta( $user->ID, self::SECRET_META_KEY, true ); 29 30 if ( ! $code ) { 31 $code = $_REQUEST['authcode']; 32 } 33 34 return $this->is_valid_authcode( $key, $code ); 35 } 26 36 }
Note: See TracChangeset
for help on using the changeset viewer.