Skip to content

Commit 3475425

Browse files
committed
AC-9437: 2FA U2F screens need error handling when not available
Static test fixes
1 parent aebe930 commit 3475425

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

TwoFactorAuth/view/adminhtml/web/js/u2fkey/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ define([
8585
waitForTouch: function () {
8686
this.idle(false);
8787
if (!navigator.credentials) {
88-
this.currentStep("no-webauthn");
88+
this.currentStep('no-webauthn');
8989
return;
9090
}
9191
navigator.credentials.get({

TwoFactorAuth/view/adminhtml/web/js/u2fkey/configure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ define([
7979
waitForTouch: function () {
8080
this.idle(false);
8181
if (!navigator.credentials) {
82-
this.currentStep("no-webauthn");
82+
this.currentStep('no-webauthn');
8383
return;
8484
}
8585
navigator.credentials.create({

TwoFactorAuth/view/adminhtml/web/template/u2fkey/auth.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<fieldset class="admin__fieldset">
1010
<legend class="admin__legend">
1111
<span translate="'2FA - U2F key verification'"></span>
12-
</legend><br/>
12+
</legend><br>
1313
<div class="tfa-u2f-touch-key">
1414
<h3 translate="'Plug in your U2F key and follow instructions'"></h3>
1515
<div visible="$data.idle" class="tfa-u2f-try-again">

TwoFactorAuth/view/adminhtml/web/template/u2fkey/configure.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<fieldset class="admin__fieldset">
1010
<legend class="admin__legend">
1111
<span translate="'2FA - U2F key device registration'"></span>
12-
</legend><br/>
12+
</legend><br>
1313
<div id="u2f-touch-key">
1414
<h3 translate="'Plug in your U2F key and follow instructions'"></h3>
1515
<div visible="$data.idle" class="tfa-u2f-try-again">

0 commit comments

Comments
 (0)