From 00e4178e539cf6330e0d92827e7a809297ee3dc1 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 11 Mar 2021 21:26:38 +0000 Subject: [PATCH] --- ayanova/src/plugins/vuetify.js | 8 +++++ ayanova/src/views/home-security.vue | 51 ++++++++++++----------------- 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/ayanova/src/plugins/vuetify.js b/ayanova/src/plugins/vuetify.js index 54161468..a7baf7a3 100644 --- a/ayanova/src/plugins/vuetify.js +++ b/ayanova/src/plugins/vuetify.js @@ -116,6 +116,7 @@ import { faLink, faListOl, faListUl, + faLock, faMagic, faMapMarkerAlt, faMapMarkedAlt, @@ -293,6 +294,7 @@ library.add( faLink, faListOl, faListUl, + faLock, faMagic, faMapMarkerAlt, faMapMarkedAlt, @@ -912,6 +914,12 @@ const CUSTOM_ICONS = { icon: ["fas", "list-ul"] } }, + ayiLock: { + component: FontAwesomeIcon, + props: { + icon: ["fas", "lock"] + } + }, ayiMagic: { component: FontAwesomeIcon, props: { diff --git a/ayanova/src/views/home-security.vue b/ayanova/src/views/home-security.vue index 73e75fc4..2be5da75 100644 --- a/ayanova/src/views/home-security.vue +++ b/ayanova/src/views/home-security.vue @@ -12,36 +12,26 @@ {{ $ay.t("AuthConnectAppTitle") }} Using an authenticator app like Google Authenticator, Duo, - Microsoft Authenticator or Authy, scan the QR code. It will - display a 6 digit code which you need to enter below. + >{{ $ay.t("AuthConnectAppSubTitle") }}
Embedded QR Code
- - Having trouble scanning the code? Enter the following - manually: -
- {{ obj.s }} -
+ {{ $ay.t("AuthConnectAppManualEntry") }} + {{ obj.s }} +
- - @@ -112,6 +102,7 @@ export default { s: null, // = u.TotpSecret, qr: null // = qrCodeImageAsBase64 }, + pin: null, tfaEnabled: window.$gz.store.state.tfaEnabled, formState: { ready: false, @@ -228,9 +219,9 @@ function clickHandler(menuItem) { function generateMenu(vm) { let menuOptions = { isMain: true, - icon: "$ayiKey", - title: "SetLoginPassword", - helpUrl: "home-password", + icon: "$ayiLock", + title: "AuthTwoFactor", + helpUrl: "home-tfa", formData: { ayaType: window.$gz.type.UserOptions }, @@ -263,11 +254,11 @@ async function initForm(vm) { // async function fetchTranslatedText(vm) { await window.$gz.translation.cacheTranslations([ - "UserLogin", - "OldPassword", - "NewPassword", - "ConfirmPassword", - "KnownPasswordWarning" + "AuthConnectAppTitle", + "AuthConnectAppSubTitle", + "AuthConnectAppManualEntry", + "AuthEnterPin", + "AuthTwoFactor" ]); }