Integrates the Two Factor plugin into BuddyPress.
- Install and activate the Two Factor plugin.
- Install and activate this plugin.
- Navigate to your BuddyPress profile's "Settings" page. You should see a Two Factor Authentication block.
- Enable your preferred 2FA option and ensure one of them is marked as Primary.
- Logout and login again to test two-factor authentication.
This plugin also makes the following usability improvements:
- "Security Keys" block only shows up if it is enabled. (See pull request.)
- Deselecting a 2FA provider will remove it as the primary 2FA option if it was previously selected. Also, if another 2FA provider was enabled during unchecking, that provider will be selected as the new primary 2FA option. This was done to address this problem.
- Changed "FIDO U2F Security Keys" label to "Security Keys" for simplicity.
- Changed "Backup Verification Codes (Single Use)" label to "Recovery Codes". "Recovery Codes" seems to be more in use on other 2FA sites such as Github and Microsoft.
- Removed "You can find FIDO U2F Security Key devices for sale from here" link under the "Security Keys" section as that sounds like an ad. (Source.)
- Added more descriptive text to the "Security Keys" and "Recovery Codes" sections.
- Changed the BuddyPress "Settings > General" tab to "Settings > Security" to better reflect the content on the page.
These improvements only take place on the BuddyPress profile's "Settings" page, and not in the admin dashboard's profile page.
The following improvements have been merged into the main Two Factor plugin:
- Clicking on the 2FA provider name will select it under the "Enabled" checkbox. (See pull request.)