Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions a92725 ... vs 2ac167 ... for ruralHouses/src/businessLogic/LoginManager.java

Diff revisions: vs.
  @@ -22,13 +22,13 @@
22 22 }
23 23
24 24 @Override
25 - public Owner checkCredentials(String usr, String pwd) {
25 + public Account checkCredentials(String usr, String pwd) {
26 26 try {
27 27 Vector<Account> account = dbMngr.getAccount(usr, pwd);
28 28 if (account.isEmpty())
29 29 return null;
30 30 else
31 - return account.get(0).getOwner();
31 + return account.get(0);
32 32
33 33 } catch (Exception e) {
34 34 // TODO Auto-generated catch block
  @@ -36,5 +36,7 @@
36 36 }
37 37 return null;
38 38 }
39 +
40 +
39 41
40 42 }