Skip to content

Commit

Permalink
Allow for initials as first name if idin
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Nov 6, 2024
1 parent 0749bce commit c592d99
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ public String getGivenName() {
if (StringUtils.hasText(firstName) && IdpScoping.eherkenning.equals(idpScoping)) {
return firstName;
}
if (StringUtils.hasText(initials) && IdpScoping.idin.equals(idpScoping)) {
return initials;
}
return null;
}

Expand All @@ -155,6 +158,9 @@ public String getFamilyName() {
if (StringUtils.hasText(legalLastName)) {
return legalLastName;
}
if (StringUtils.hasText(preferredLastName)) {
return preferredLastName;
}
return null;
}
}

0 comments on commit c592d99

Please sign in to comment.