GODT-2152: Sign-in dialog validate email and password only when button is pressed.

This commit is contained in:
Xavier Michelon
2022-12-01 08:10:25 +01:00
parent 842c9c8ecd
commit 4375d77a98

View File

@ -208,6 +208,7 @@ FocusScope {
focus: true
Layout.fillWidth: true
Layout.topMargin: 24
validateOnEditingFinished: false
onTextChanged: {
// remove "invalid username / password error"
@ -232,10 +233,10 @@ FocusScope {
colorScheme: root.colorScheme
id: passwordTextField
label: qsTr("Password")
Layout.fillWidth: true
Layout.topMargin: 8
echoMode: TextInput.Password
validateOnEditingFinished: false
onTextChanged: {
// remove "invalid username / password error"
@ -335,7 +336,7 @@ FocusScope {
id: twoFactorPasswordTextField
label: qsTr("Two-factor code")
assistiveText: qsTr("Enter the 6-digit code")
validateOnEditingFinished: false
Layout.fillWidth: true
Layout.topMargin: 32
@ -400,10 +401,10 @@ FocusScope {
colorScheme: root.colorScheme
id: secondPasswordTextField
label: qsTr("Mailbox password")
Layout.fillWidth: true
Layout.topMargin: 8 + implicitHeight + 24 + subTitle.implicitHeight
echoMode: TextInput.Password
validateOnEditingFinished: false
validator: function(str) {
if (str.length === 0) {