mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
fix(BRIDGE-332): filter new line characters from username and password fields in GUI
This commit is contained in:
@ -271,7 +271,10 @@ FocusScope {
|
|||||||
usernameTextField.enabled = false;
|
usernameTextField.enabled = false;
|
||||||
passwordTextField.enabled = false;
|
passwordTextField.enabled = false;
|
||||||
loading = true;
|
loading = true;
|
||||||
Backend.login(usernameTextField.text, Qt.btoa(passwordTextField.text));
|
|
||||||
|
let usernameTextFiltered = usernameTextField.text.replace(/[\n\r]+$/, "");
|
||||||
|
let passwordTextFiltered = passwordTextField.text.replace(/[\n\r]+$/, "");
|
||||||
|
Backend.login(usernameTextFiltered, Qt.btoa(passwordTextFiltered));
|
||||||
}
|
}
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|||||||
Reference in New Issue
Block a user