fix(@desktop/onboarding): Password strength indicator fixes for 10-chars

Close #5702
This commit is contained in:
mishkarogachev 2022-05-12 12:08:28 +03:00 committed by Iuri Matias
parent 7553d13092
commit c04b9a937d
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 1b25ddd2b5d5bf4276253543d832b0e79952c4aa
Subproject commit 9498be05efa946c6433cfd8135326730069467bf

View File

@ -21,7 +21,7 @@ Column {
property bool titleVisible: true
property string introText: qsTr("Create a password to unlock Status on this device & sign transactions.")
property string recoverText: qsTr("You will not be able to recover this password if it is lost.")
property string strengthenText: qsTr("Minimum 6 characters. To strengthen your password consider including:")
property string strengthenText: qsTr("Minimum %1 characters. To strengthen your password consider including:").arg(minPswLen)
property bool onboarding: false
readonly property int zBehind: 1
@ -244,7 +244,7 @@ Column {
id: strengthInditactor
width: parent.width
anchors.horizontalCenter: parent.horizontalCenter
value: newPswInput.text.length > root.minPswLen ? root.minPswLen : newPswInput.text.length
value: Math.min(root.minPswLen, newPswInput.text.length)
from: 0
to: root.minPswLen
labelVeryWeak: qsTr("Very weak")