Missing isEncrypted should mean a true value

This commit is contained in:
Shrikant Sharat Kandula 2020-12-23 14:23:03 +05:30
parent 61e12235b2
commit c7f330c4c7

View File

@ -47,7 +47,10 @@ public class AuthenticationDTO {
@JsonIgnore
public boolean isEncrypted() {
return Boolean.TRUE.equals(isEncrypted);
if (isEncrypted == null) {
return true;
}
return isEncrypted;
}
}