Allow switching auth types

This commit is contained in:
M66B
2022-07-16 16:24:54 +02:00
parent c10abc0db0
commit 7d92c52bb9
8 changed files with 29 additions and 49 deletions

View File

@@ -37,7 +37,8 @@ public class TupleAccountState extends EntityAccount {
this.insecure.equals(other.insecure) &&
this.port.equals(other.port) &&
this.user.equals(other.user) &&
(auth_type != AUTH_TYPE_PASSWORD || this.password.equals(other.password)) &&
Objects.equals(this.auth_type, other.auth_type) &&
this.password.equals(other.password) &&
Objects.equals(this.certificate_alias, other.certificate_alias) &&
Objects.equals(this.realm, other.realm) &&
Objects.equals(this.fingerprint, other.fingerprint) &&