Add external auth emails to entity search

Fixes #1791
This commit is contained in:
Joseph Schorr 2016-09-08 11:23:37 -04:00
parent 934cdecbd6
commit ccb5bc8f1b
3 changed files with 11 additions and 0 deletions

View file

@ -139,6 +139,7 @@ class EntitySearch(ApiResource):
result = {
'name': user.username,
'kind': 'external',
'title': user.email or '',
'avatar': avatar.get_data_for_external_user(user)
}
return result