Merge pull request #691 from amnezia-vpn/bugfix/credentials-space-check
fixed checking credentials for spaces
This commit is contained in:
commit
294778884b
1 changed files with 8 additions and 4 deletions
|
@ -56,8 +56,8 @@ PageType {
|
||||||
regularExpression: InstallController.ipAddressPortRegExp()
|
regularExpression: InstallController.ipAddressPortRegExp()
|
||||||
}
|
}
|
||||||
|
|
||||||
onFocusChanged: {
|
textField.onFocusChanged: {
|
||||||
textField.text = textField.text.replace(/^\s+|\s+$/g, '');
|
textField.text = textField.text.replace(/^\s+|\s+$/g, '')
|
||||||
}
|
}
|
||||||
|
|
||||||
KeyNavigation.tab: username.textField
|
KeyNavigation.tab: username.textField
|
||||||
|
@ -70,6 +70,10 @@ PageType {
|
||||||
headerText: qsTr("Login to connect via SSH")
|
headerText: qsTr("Login to connect via SSH")
|
||||||
textFieldPlaceholderText: "root"
|
textFieldPlaceholderText: "root"
|
||||||
|
|
||||||
|
textField.onFocusChanged: {
|
||||||
|
textField.text = textField.text.replace(/^\s+|\s+$/g, '')
|
||||||
|
}
|
||||||
|
|
||||||
KeyNavigation.tab: secretData.textField
|
KeyNavigation.tab: secretData.textField
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,8 +92,8 @@ PageType {
|
||||||
hidePassword = !hidePassword
|
hidePassword = !hidePassword
|
||||||
}
|
}
|
||||||
|
|
||||||
onFocusChanged: {
|
textField.onFocusChanged: {
|
||||||
textField.text = textField.text.replace(/^\s+|\s+$/g, '');
|
textField.text = textField.text.replace(/^\s+|\s+$/g, '')
|
||||||
}
|
}
|
||||||
|
|
||||||
KeyNavigation.tab: continueButton
|
KeyNavigation.tab: continueButton
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue