KEYCLOAK-12281 Fix export/import for users that have custom credential algorithms with no salt
- do not swallow exception when decoding salt
This commit is contained in:
parent
b8a8f88764
commit
530b99c933
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ public class PasswordSecretData {
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public PasswordSecretData(@JsonProperty("value") String value, @JsonProperty("salt") String salt) throws IOException {
|
public PasswordSecretData(@JsonProperty("value") String value, @JsonProperty("salt") String salt) throws IOException {
|
||||||
if ("__SALT__".equals(salt)) {
|
if (salt == null || "__SALT__".equals(salt)) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
this.salt = null;
|
this.salt = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue