Only show "Security Keys" section if "FIDO U2F Security Keys" is enabled #386
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
This PR only shows the "Security Keys" section if the "FIDO U2F Security Keys" provider is enabled. See #243.
Here's a GIF of the PR:
If JS is disabled, the "Security Keys" section gets displayed as expected.
I created this PR for better UX. If the "Security Keys" section is shown, but the "FIDO U2F Security Keys" provider is not enabled, this might confuse people thinking that this might be something that needs to be filled in.
I would also recommend changing the
Requires an HTTPS connection. Configure your security keys in the "Security Keys" section below.
string. I don't think it is necessary to mentionRequires an HTTPS connection
. Either the server supports HTTPS or it doesn't. The end user doesn't care about this.Let me know what you think.