Modules Client et Core : modifications diverses classes suite ajout clss gui (voir précédent commit)

This commit is contained in:
Notmoo
2017-08-13 21:57:39 +02:00
parent 543e571e82
commit 0eef751c41
5 changed files with 17 additions and 8 deletions

View File

@ -49,7 +49,7 @@ public class Account implements ILoggable, Serializable {
@Override
public int hashCode() {
return Objects.hash(id, username, passwordHash, permissionLevel);
return Objects.hash(username, password, permissionLevel);
}
@Override
@ -61,9 +61,8 @@ public class Account implements ILoggable, Serializable {
return false;
Account acc = Account.class.cast(obj);
return this.id == acc.id
&& Objects.equals(this.username, acc.username)
&& Objects.equals(this.passwordHash, acc.passwordHash)
return Objects.equals(this.username, acc.username)
&& Objects.equals(this.password, acc.password)
&& Objects.equals(this.permissionLevel, acc.permissionLevel);
}
}