Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions 4f8bcc ... vs 799949 ... for ruralHouses client/src/gui/OwnerRegistrationGUI.java

Diff revisions: vs.
  @@ -140,11 +140,12 @@
140 140 this.bank1Field.getText() + " " + this.bank2Field.getText()
141 141 + " " + this.bank3Field.getText() + " "
142 142 + this.bank4Field.getText(), this.emailField.getText());
143 - Account acc = new Account(this.userNameField.getText(),
144 - this.passField.getText(), own);
143 +
145 144
146 145 try {
147 - if (this.am.addAccount(acc)) {
146 + if (this.am.addAccountRequest(this.userNameField.getText(),
147 + this.passField.getText(), own)) {
148 + this.am.saveInstance();
148 149 this.feedback.setText("Request sended");
149 150 } else {
150 151 this.feedback.setText("Can't send the request");