From 4375d77a98b67b66977d74d9cda67bbd7e9c8e09 Mon Sep 17 00:00:00 2001 From: Xavier Michelon Date: Thu, 1 Dec 2022 08:10:25 +0100 Subject: [PATCH] GODT-2152: Sign-in dialog validate email and password only when button is pressed. --- internal/frontend/bridge-gui/bridge-gui/qml/SignIn.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/SignIn.qml b/internal/frontend/bridge-gui/bridge-gui/qml/SignIn.qml index b164bb26..d0c3768d 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/SignIn.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/SignIn.qml @@ -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) {