New designs by @AAlhazwani-WMF:
| When no 2FA methods are set up | Success message after setting up a 2FA method | With two methods set up | Expanded accordion |
- Remove existing UI with separate "Enable" buttons for TOTP and WebAuthn
- Add a "Two-factor authentication" section on Special:AccountSecurity (see T401771) which lists all registered 2FA methods as accordions
- Each accordion contains the name and type of the method in its title (shown when collapsed)
- When expanded, each accordion displays the creation timestamp, and "Rename" and "Delete" buttons (see also T401775: Allow 2FA methods to be renamed)
- At the bottom of this section, add a ButtonGroup with two buttons, one for adding a TOTP app and one for WebAuthn
- When a new 2FA method is added, or a method is removed, a success message should be displayed





