mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Merge pull request #3886 from alphagov/protect-no-webauthn-js
Prevent registration if WebAuthn is not supported
This commit is contained in:
@@ -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';
|
||||
|
||||
25
app/assets/stylesheets/views/webauthn.scss
Normal file
25
app/assets/stylesheets/views/webauthn.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user