The Security tab doesn't have fields, but uses fieldsets. Switching to using heading tags will look a bit cleaner.
See point 8 at #2239973-51: Deploy two-factor-authentication on drupal.org for the original suggestion.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2480577-tfa-basic-setup-ui-8.patch | 2.09 KB | coltrane |
| #8 | tfa-account-disabled.jpg | 159.82 KB | coltrane |
| #8 | tfa-account-enabled.jpg | 213.48 KB | coltrane |
| #3 | 2480577-tfa-basic-setup-ui-3.patch | 6.82 KB | coltrane |
| #2 | tfa-disable-location.png | 93.49 KB | coltrane |
Comments
Comment #1
drummHere is a patch for review. Also,
'#theme' => 'link'is used so links can be altered, such as adding classes.With Drupal.org's theme, it looks like this:

Comment #2
coltraneThank you @drumm! One visual issue is the lack of separation before "Disable TFA". How about if it was moved up next to the status indicator to appear after the set time?
Comment #3
coltraneAnd as patch. All tests pass.
I don't love moving up an action that shouldn't happen very often, but it's still out of the way and is simple change.
Comment #4
drummLooks good.
Comment #6
coltraneComment #7
Bojhan commentedI see a couple usability improvements:
I'd like to just make those improvements in HMTL to show, but I cant really figure out where to go. Can I view this online somewhere?
Comment #8
coltrane@Bojhan thanks for your feedback.
I can reuse the format of the individual plugins for the status for the status and set the current state (enabled or disabled) as the header:
Here's the enabled state which also shows browser summaries.
The opening page text defines TFA and I think a lot of people are familiar with the term now.
As far as live testing, https://www.drupal.org/node/2239973 links to a devdrupal site.
Comment #9
drummI think the 'Enabled'/'Disabled' heading might need some more context, I expect many people will skip the paragraph above.
Would it make sense to merge with the 'TFA application' section? As in the section would be:
or when enabled:
For now, this patch is applied to the dev site referenced in #2239973: Deploy two-factor-authentication on drupal.org.
Comment #10
drummComment #11
coltraneI like that suggestion @drumm. Setting to CNW to make those changes.
Comment #12
banviktor commentedI think we should keep #2478307: Allow user to decide which method is primary in mind. If we change the main plugin's title to TFA en/disabled it might get messy.