diff --git a/client/src/components/TOTP/Register.js b/client/src/components/TOTP/Register.js index b186dca..41f7801 100644 --- a/client/src/components/TOTP/Register.js +++ b/client/src/components/TOTP/Register.js @@ -127,8 +127,9 @@ class Register extends Component {
{ i18n._t( 'TOTPRegister.INTRO', - 'Verification codes are created by an app on your phone. ' - ) }{ this.renderSupportLink() }
+ 'Verification codes are created by an app on your phone. ', + ) }{ this.renderSupportLink() } +{i18n._t( 'TOTPRegister.MANUAL', - 'Enter manually the following code into authentication app:' - )}
+ 'Enter manually the following code into authentication app:', + )} +{ formattedCode }
@@ -257,5 +259,5 @@ export default inject( (TOTPVerifyComponent) => ({ TOTPVerifyComponent, }), - () => 'MFA.Register' + () => 'MFA.Register', )(Register); diff --git a/client/src/components/TOTP/Verify.js b/client/src/components/TOTP/Verify.js index 6ea1c3e..0d8b309 100644 --- a/client/src/components/TOTP/Verify.js +++ b/client/src/components/TOTP/Verify.js @@ -18,7 +18,7 @@ class Verify extends Component { // Note: deliberately React 15 compatible ref syntax for SS 4.0-4.3 support this.codeInput = null; - this.setCodeInput = element => { + this.setCodeInput = (element) => { this.codeInput = element; }; @@ -110,7 +110,6 @@ class Verify extends Component { ); } - /** * If there is a configured support link, will render a link to the TOTP authenticator's * support documentation (e.g. userhelp). @@ -146,14 +145,15 @@ class Verify extends Component {{ i18n._t( 'TOTPVerify.VERIFY', - 'Use verification code from your authenticator app. ' - ) }{ this.renderSupportLink() }
+ 'Use verification code from your authenticator app. ', + ) }{ this.renderSupportLink() } + diff --git a/client/src/components/TOTP/tests/Register-test.js b/client/src/components/TOTP/tests/Register-test.js index b3486d9..5c29162 100644 --- a/client/src/components/TOTP/tests/Register-test.js +++ b/client/src/components/TOTP/tests/Register-test.js @@ -1,8 +1,8 @@ /* global jest, test, expect */ import React from 'react'; -import { Component as Register } from '../Register'; import { render, screen, fireEvent } from '@testing-library/react'; +import { Component as Register } from '../Register'; window.ss = { i18n: { _t: (key, string) => string }, @@ -26,7 +26,7 @@ function makeProps(obj = {}) { {moreOptionsControl}