RRRRHHHH_Code
Diff Revisions 556478 ... vs e90cb4 ... for ruralHouses/src/domain/Account.java
@@ -29,6 +29,13 @@ | |||
29 | 29 | this.owner = null; | |
30 | 30 | ||
31 | 31 | } | |
32 | + | public Account(Owner own){ | |
33 | + | this.username = null; | |
34 | + | this.salt =null; | |
35 | + | this.password = null; | |
36 | + | this.owner = own; | |
37 | + | ||
38 | + | } | |
32 | 39 | public Account(String usr, String pass, boolean isAdmin) { | |
33 | 40 | this.username = SecurityManager.getInstance().calculateHash(usr); | |
34 | 41 | this.salt = SecurityManager.getInstance().generateSalt(); |