From 262a6c3160c1a5c8698cb5f7f5dd4e187140e4dc Mon Sep 17 00:00:00 2001 From: Alexandra Betouni Date: Mon, 5 Sep 2022 11:45:37 +0300 Subject: [PATCH] fix(AddAccountModal): Updated password error message Closes #5719 --- ui/app/AppLayouts/Wallet/popups/AddAccountModal.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Wallet/popups/AddAccountModal.qml b/ui/app/AppLayouts/Wallet/popups/AddAccountModal.qml index 8b568ea907..0040243a85 100644 --- a/ui/app/AppLayouts/Wallet/popups/AddAccountModal.qml +++ b/ui/app/AppLayouts/Wallet/popups/AddAccountModal.qml @@ -22,6 +22,7 @@ import "../panels" StatusModal { id: root + property int minPswLen: 10 readonly property int marginBetweenInputs: Style.dp(38) readonly property alias passwordValidationError: d.passwordValidationError @@ -59,7 +60,8 @@ StatusModal { function onDerivedAddressesErrorChanged() { if(Utils.isInvalidPasswordMessage(RootStore.derivedAddressesError)) - d.passwordValidationError = qsTr("Wrong password") + d.passwordValidationError = qsTr("Password must be at least %n character(s) long", "", root.minPswLen); + } }