fix delete user info additional data
This commit is contained in:
parent
66c650495f
commit
5c17027df2
|
@ -193,7 +193,7 @@ public class UserInterceptor implements WebRequestInterceptor {
|
||||||
throw new MyApplicationException("Can not found user " + userId);
|
throw new MyApplicationException("Can not found user " + userId);
|
||||||
}
|
}
|
||||||
user = userInfos.get(0);
|
user = userInfos.get(0);
|
||||||
user.setAdditionalinfo("{\"data\":{\"avatar\":{\"url\":\"\"},\"zenodoToken\":\"\", \"expirationDate\": \"\", \"zenodoRefresh\": \"\", \"zenodoEmail\": \"\"}}"); //TODO: Authn
|
//user.setAdditionalinfo("{\"data\":{\"avatar\":{\"url\":\"\"},\"zenodoToken\":\"\", \"expirationDate\": \"\", \"zenodoRefresh\": \"\", \"zenodoEmail\": \"\"}}"); //TODO: Authn
|
||||||
}
|
}
|
||||||
|
|
||||||
CredentialEntity credentialEntity = new CredentialEntity();
|
CredentialEntity credentialEntity = new CredentialEntity();
|
||||||
|
@ -203,7 +203,7 @@ public class UserInterceptor implements WebRequestInterceptor {
|
||||||
credentialEntity.setCreationTime(new Date());
|
credentialEntity.setCreationTime(new Date());
|
||||||
credentialEntity.setLastUpdateTime(new Date());
|
credentialEntity.setLastUpdateTime(new Date());
|
||||||
credentialEntity.setIsActive(IsActive.Active);
|
credentialEntity.setIsActive(IsActive.Active);
|
||||||
credentialEntity.setProvider(ProviderType.Keycloack);//TODO: Authn
|
credentialEntity.setProvider(ProviderType.Keycloack);
|
||||||
credentialEntity.setExternalId(subjectId);
|
credentialEntity.setExternalId(subjectId);
|
||||||
credentialEntity.setEmail(email);
|
credentialEntity.setEmail(email);
|
||||||
credentialEntity.setPublicValue(email);
|
credentialEntity.setPublicValue(email);
|
||||||
|
|
Loading…
Reference in New Issue