fix add github link to passport

This commit is contained in:
Berkeley Martinez
2015-08-10 23:38:10 -07:00
parent 5f21db457d
commit 2256f3ef6e
3 changed files with 16 additions and 2 deletions

View File

@ -79,7 +79,7 @@ export default function(UserIdent) {
}
// if user signed in with github refresh their info
if (userIdent.provider === 'github-login') {
if (/github/.test(userIdent.provider)) {
debug("user isn't github cool or username from github is different");
setProfileFromGithub(user, profile, profile._json);
userChanged = true;