mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
check if user is logging in via twitter to know if their profile is complete
This commit is contained in:
parent
0fb9cdf9ca
commit
1bffc8a277
1 changed files with 5 additions and 1 deletions
|
@ -8,5 +8,9 @@ getCurrentUserEmail = function(){
|
|||
return Meteor.user() ? Meteor.user().emails[0].address : '';
|
||||
}
|
||||
userProfileComplete = function(user) {
|
||||
return !!user.profile.email;
|
||||
if(user.services.twitter){
|
||||
return !!user.profile.email;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue