add user.isGithubCool check

if user signs up with github, they become GithubCool.
This commit is contained in:
Berkeley Martinez
2015-08-04 13:39:59 -07:00
parent ce0b3b35c0
commit 2dc9934da2
2 changed files with 7 additions and 39 deletions

View File

@@ -65,6 +65,9 @@ var passportOptions = {
if (email) {
userObj.email = email;
}
if (provider === 'github-login') {
userObj.isGithubCool = true;
}
return userObj;
}
};