add user.isGithubCool check
if user signs up with github, they become GithubCool.
This commit is contained in:
@@ -65,6 +65,9 @@ var passportOptions = {
|
||||
if (email) {
|
||||
userObj.email = email;
|
||||
}
|
||||
if (provider === 'github-login') {
|
||||
userObj.isGithubCool = true;
|
||||
}
|
||||
return userObj;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user