WordPress / wporg-two-factor

2FA for WordPress.org accounts
38 stars 8 forks source link

Only create backup codes when user initiated #296

Closed adamwoodnz closed 2 months ago

adamwoodnz commented 3 months ago

Fixes #250

Changes the backup codes screen to not generate codes on load. Instead the Generate codes button must be activated. Once backup codes have been enabled the button text changes to Regenerate codes as before.

Improves the UI by not rendering the action buttons until the codes are available.

Pre-generation Enabled
Screenshot 2024-08-14 at 1 48 57 PM Screenshot 2024-08-14 at 1 49 27 PM