From 15667ec15e19a014cb16028185894b75c8f5bacb Mon Sep 17 00:00:00 2001 From: Brendan Early Date: Thu, 1 Aug 2024 22:31:01 -0700 Subject: [PATCH] Require verifying password before chaning it (#1246) * Verify current password before changing it. * split out verifyPassword into two functions * typo * change incorrect password message --- _locales/en/messages.json | 5 +- src/components/Popup/SetPasswordPage.vue | 37 ++++++++++ src/models/password.ts | 91 ++++++++++++++++++++++++ 3 files changed, 132 insertions(+), 1 deletion(-) create mode 100644 src/models/password.ts diff --git a/_locales/en/messages.json b/_locales/en/messages.json index ff4e2fdc0..1509958f1 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1,4 +1,4 @@ -{ +{ "extName": { "message": "Authenticator", "description": "Extension Name." @@ -515,6 +515,9 @@ "permission_unknown_permission": { "message": "Unknown permission. If see this message, please send a bug report." }, + "phrase_wrong": { + "message": "Password incorrect" + }, "activate_auto_filter": { "message": "Warning: Smart filter loosely matches the domain name to an account. Always verify that you are on the correct website before entering a code!" } diff --git a/src/components/Popup/SetPasswordPage.vue b/src/components/Popup/SetPasswordPage.vue index 33f414f15..be00b882a 100644 --- a/src/components/Popup/SetPasswordPage.vue +++ b/src/components/Popup/SetPasswordPage.vue @@ -1,6 +1,12 @@