Merge pull request #3886 from alphagov/protect-no-webauthn-js

Prevent registration if WebAuthn is not supported
This commit is contained in:
Ben Thorner
2021-05-18 11:59:00 +01:00
committed by GitHub
5 changed files with 50 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ $path: '/static/images/';
@import 'views/get_started';
@import 'views/history';
@import 'views/cookies';
@import 'views/webauthn';
// TODO: break this up
@import 'app';

View File

@@ -0,0 +1,25 @@
.webauthn__no-js {
.js-enabled & {
display: none;
}
}
.webauthn__api-missing {
display: none;
.js-enabled & {
display: block;
}
.js-enabled.webauthn-api-enabled & {
display: none;
}
}
.webauthn__api-required {
display: none;
.webauthn-api-enabled & {
display: block;
}
}