Skip to content

Commit

Permalink
Add the missing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Sep 18, 2024
1 parent 9297b60 commit 8d1972f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions providers/class-two-factor-fido-u2f.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ public static function uninstall_user_meta_keys() {
return array(
self::REGISTERED_KEY_USER_META_KEY,
self::AUTH_DATA_USER_META_KEY,
Two_Factor_FIDO_U2F_Admin::REGISTER_DATA_USER_META_KEY,
);
}
}
12 changes: 12 additions & 0 deletions providers/class-two-factor-totp.php
Original file line number Diff line number Diff line change
Expand Up @@ -771,4 +771,16 @@ private static function abssort( $a, $b ) {
}
return ( $a < $b ) ? -1 : 1;
}

/**
* Return user meta keys to delete during plugin uninstall.
*
* @return array
*/
public static function uninstall_user_meta_keys() {
return array(
self::SECRET_META_KEY,
self::LAST_SUCCESSFUL_LOGIN_META_KEY,
);
}
}

0 comments on commit 8d1972f

Please sign in to comment.