GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
When a provider does not provide the full name of the user, displayName is set to 'undefined undefined', which is annoying.
Added the condition to only set displayName if firstname and lastname parameters are set, so applications can handle empty names.
Avoid 'undefined undefined' displayName.
Only set profile.displayName if firstname and lastname parameters are set.
Merge pull request #7 from lortabac/master
Avoid 'undefined undefined' displayName
Thanks! Merged and published to npm as passport-openid v0.3.0.