From 45809f0711044f4c48e2b3c7de3d9411c66453ba Mon Sep 17 00:00:00 2001 From: Nikhil Ashoka Date: Tue, 10 Dec 2024 19:41:25 +0530 Subject: [PATCH] Update User management page for MFA - Add pop-up menu to Enable MFA - Removed secret key clear option current logged in user - Updated warning messages Signed-off-by: Nikhil Ashoka --- package-lock.json | 13 ++ package.json | 1 + src/components/Global/InfoTooltip.vue | 2 +- src/locales/en-US.json | 22 ++- src/views/Login/Login.vue | 11 +- src/views/Login/ModalOtpGenerate.vue | 14 +- .../UserManagement/RegisterOtpModal.vue | 56 ++++++- .../UserManagement/UserManagement.vue | 157 +++++++++++++----- src/views/Settings/DateTime/DateTime.vue | 14 ++ 9 files changed, 231 insertions(+), 59 deletions(-) diff --git a/package-lock.json b/package-lock.json index c62a66ebf3..81242f85af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13386,6 +13386,11 @@ "verror": "1.10.0" } }, + "jssha": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jssha/-/jssha-3.3.1.tgz", + "integrity": "sha512-VCMZj12FCFMQYcFLPRm/0lOBbLi8uM2BhXPTqw3U4YAfs4AZfiApOoBLoN8cQE60Z50m1MYMTQVCfgF/KaCVhQ==" + }, "keyv": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", @@ -18763,6 +18768,14 @@ "integrity": "sha1-LmhELZ9k7HILjMieZEOsbKqVACk=", "dev": true }, + "totp-generator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/totp-generator/-/totp-generator-1.0.0.tgz", + "integrity": "sha512-Iu/1Lk60/MH8FE+5cDWPiGbwKK1hxzSq+KT9oSqhZ1BEczGIKGcN50bP0WMLiIZKRg7t29iWLxw6f81TICQdoA==", + "requires": { + "jssha": "^3.3.1" + } + }, "tough-cookie": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", diff --git a/package.json b/package.json index 99edd5e503..efba2be754 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "lodash": "4.17.21", "n64": "0.2.10", "qrcode.vue": "1.7.0", + "totp-generator": "1.0.0", "vue": "2.6.12", "vue-i18n": "8.24.2", "vue-router": "3.5.1", diff --git a/src/components/Global/InfoTooltip.vue b/src/components/Global/InfoTooltip.vue index 0e52ee2cd6..d6b550a6e9 100644 --- a/src/components/Global/InfoTooltip.vue +++ b/src/components/Global/InfoTooltip.vue @@ -1,6 +1,6 @@