Merge pull request #3575 from beingindot/account_validation

Account validation
This commit is contained in:
Christoph Atteneder 2019-11-14 14:49:54 +01:00 committed by GitHub
commit 7e08d66a5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -66,7 +66,7 @@ public class ClearXchangeForm extends PaymentMethodForm {
Res.get("payment.account.owner"));
holderNameInputTextField.setValidator(inputValidator);
holderNameInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
clearXchangeAccount.setHolderName(newValue);
clearXchangeAccount.setHolderName(newValue.trim());
updateFromInputs();
});
@ -74,7 +74,7 @@ public class ClearXchangeForm extends PaymentMethodForm {
Res.get("payment.email.mobile"));
mobileNrInputTextField.setValidator(clearXchangeValidator);
mobileNrInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
clearXchangeAccount.setEmailOrMobileNr(newValue);
clearXchangeAccount.setEmailOrMobileNr(newValue.trim());
updateFromInputs();
});
final TradeCurrency singleTradeCurrency = clearXchangeAccount.getSingleTradeCurrency();

View File

@ -65,14 +65,14 @@ public class PopmoneyForm extends PaymentMethodForm {
Res.get("payment.account.owner"));
holderNameInputTextField.setValidator(inputValidator);
holderNameInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
account.setHolderName(newValue);
account.setHolderName(newValue.trim());
updateFromInputs();
});
accountIdInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow, Res.get("payment.popmoney.accountId"));
accountIdInputTextField.setValidator(validator);
accountIdInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
account.setAccountId(newValue);
account.setAccountId(newValue.trim());
updateFromInputs();
});

View File

@ -77,7 +77,7 @@ public class RevolutForm extends PaymentMethodForm {
accountIdInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow, Res.get("payment.revolut.phoneNr"));
accountIdInputTextField.setValidator(validator);
accountIdInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
account.setAccountId(newValue);
account.setAccountId(newValue.trim());
updateFromInputs();
});

View File

@ -67,7 +67,7 @@ public class UpholdForm extends PaymentMethodForm {
accountIdInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow, Res.get("payment.uphold.accountId"));
accountIdInputTextField.setValidator(upholdValidator);
accountIdInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
upholdAccount.setAccountId(newValue);
upholdAccount.setAccountId(newValue.trim());
updateFromInputs();
});