Skip to content

Commit

Permalink
Show email as fallback
Browse files Browse the repository at this point in the history
There's an issue where the name fields are not being populated in the
DSI oauth payload, as a temporary fix display the email address of the
DFE sign in user who verified the claim
  • Loading branch information
rjlynch committed Oct 11, 2024
1 parent a786499 commit 08e0a9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def provider_verification
end

def provider_name
[verifier.fetch("first_name"), verifier.fetch("last_name")].join(" ")
[verifier.fetch("first_name"), verifier.fetch("last_name")].join(" ").presence || verifier.fetch("email")
end

def provider_verification_submitted?
Expand Down

0 comments on commit 08e0a9b

Please sign in to comment.