You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user following the tutorial has not got a Meteor account, the profile user name will be empty. Can I suggest the following inside the Template.input.events function:
if (Meteor.user()){
// since we are logged in using github, let's use the github user name
var name = Meteor.user().services.github.username;;
// if you want to use your Meteor name use:
// var name = Meteor.user().profile.name;
var message = document.getElementById('message');
}
else{
var name = 'Anonymous';
var message = document.getElementById('message');
}
Kind regards
AppDevGuy
The text was updated successfully, but these errors were encountered:
If the user following the tutorial has not got a Meteor account, the profile user name will be empty. Can I suggest the following inside the
Template.input.events
function:Kind regards
AppDevGuy
The text was updated successfully, but these errors were encountered: