Commit b245f8fa authored by michael.simon's avatar michael.simon
Browse files

change logging statement

parent 30fa5e92
......@@ -81,6 +81,9 @@ public class IdentityServiceImpl extends BaseServiceImpl<IdentityEntity, Long> i
if (users == null) {
logger.warn("Identity {} has no users", id.getId());
}
else if (users.size() == 0) {
logger.warn("Identity {} has no users", id.getId());
}
else if (users.size() == 1) {
for(UserEntity user : users) {
id.setTwoFaUserId(user.getId().toString());
......@@ -90,9 +93,6 @@ public class IdentityServiceImpl extends BaseServiceImpl<IdentityEntity, Long> i
id.setTwoFaUserName(UUID.randomUUID().toString());
}
}
else if (users.size() == 0) {
logger.warn("Identity has no attached user! Check identity {}", id.getId());
}
else {
logger.warn("Add missing 2fa user id from identity with more than one account is not supported! Check identity {}", id.getId());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment