fix: 🐛 Set email verified to true

Perun requires e-mail verification, so we can hardcode the value of
email_verified to "true"
pull/1580/head
Dominik Frantisek Bucik 2022-01-13 12:02:02 +01:00
parent 1ac946b83c
commit 93fc5577f5
No known key found for this signature in database
GPG Key ID: 25014C8DB2E7E62D
1 changed files with 3 additions and 2 deletions

View File

@ -227,8 +227,9 @@ public class PerunUserInfoCacheLoader extends CacheLoader<UserInfoCacheKey, User
private void processEmail(Map<String, PerunAttributeValue> userAttributeValues, PerunUserInfo ui) {
ui.setEmail(extractStringValue(emailMappings.getEmail(), userAttributeValues));
ui.setEmailVerified(Boolean.parseBoolean(
extractStringValue(emailMappings.getEmailVerified(), userAttributeValues)));
//ui.setEmailVerified(Boolean.parseBoolean(extractStringValue(emailMappings.getEmailVerified(), userAttributeValues)));
//TODO: temporary solution - Perun requires email verification, so we can hardcode it to "TRUE"
ui.setEmailVerified(true);
}
private void processAddress(Map<String, PerunAttributeValue> userAttributeValues, PerunUserInfo ui) {