Skip to content

Commit 62e1a17

Browse files
committed
Fixed an issue with openid_userinfo() for persons with no email address.
- Legacy-Id: 18105
1 parent 12fc334 commit 62e1a17

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/ietfauth/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,13 @@ def is_individual_draft_author(user, doc):
206206
def openid_userinfo(claims, user):
207207
# Populate claims dict.
208208
person = get_object_or_404(Person, user=user)
209+
email = person.email()
209210
claims.update( {
210211
'name': person.plain_name(),
211212
'given_name': person.first_name(),
212213
'family_name': person.last_name(),
213214
'nickname': '-',
214-
'email': person.email().address,
215+
'email': email.address if email else '',
215216
} )
216217
return claims
217218

0 commit comments

Comments
 (0)