Merge pull request #691 from amnezia-vpn/bugfix/credentials-space-check

fixed checking credentials for spaces
This commit is contained in:
pokamest 2024-03-18 14:37:35 +00:00 committed by GitHub
commit 294778884b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,8 +56,8 @@ PageType {
regularExpression: InstallController.ipAddressPortRegExp()
}
onFocusChanged: {
textField.text = textField.text.replace(/^\s+|\s+$/g, '');
textField.onFocusChanged: {
textField.text = textField.text.replace(/^\s+|\s+$/g, '')
}
KeyNavigation.tab: username.textField
@ -70,6 +70,10 @@ PageType {
headerText: qsTr("Login to connect via SSH")
textFieldPlaceholderText: "root"
textField.onFocusChanged: {
textField.text = textField.text.replace(/^\s+|\s+$/g, '')
}
KeyNavigation.tab: secretData.textField
}
@ -88,8 +92,8 @@ PageType {
hidePassword = !hidePassword
}
onFocusChanged: {
textField.text = textField.text.replace(/^\s+|\s+$/g, '');
textField.onFocusChanged: {
textField.text = textField.text.replace(/^\s+|\s+$/g, '')
}
KeyNavigation.tab: continueButton