check if user is logging in via twitter to know if their profile is complete

This commit is contained in:
Sacha Greif 2012-10-01 16:13:56 +09:00
parent 0fb9cdf9ca
commit 1bffc8a277

View file

@ -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;
}
}