meteor accounts-github pkg does not display username after logging in -


i have following packages installed in meteor app:

accounts-github 1.3.0 accounts-password 1.4.0 accounts-ui 1.1.9 github-config-ui 1.0.0 

i display login menu using {{> loginbuttons}}

if log in using standard username , password correctly displays username after logging in. if log in using github, logs me in doesn't display username. thing appears drop down arrow. clicking shows sign out button.

this accounts config code.

accounts.ui.config({ passwordsignupfields: "username_and_email" }); 

if need user.username field github username field user.services.github.username. can inside oncreateuser function.

 accounts.oncreateuser((options, user) => {     user.profile = options.profile;      // if signed in github     if (user.services.github) {         user.username = user.services.github.username     }      return user;  }); 

this code should server side , not inside meteor.startup().


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -