Bug fixes + interactive setup UI

This commit is contained in:
NGPixel
2017-02-26 18:06:20 -05:00
parent 3300d42866
commit 9414380c9f
14 changed files with 257 additions and 10 deletions

View File

@@ -50,6 +50,8 @@ userSchema.statics.processProfile = (profile) => {
primaryEmail = (e) ? e.value : _.first(profile.emails).value
} else if (_.isString(profile.email) && profile.email.length > 5) {
primaryEmail = profile.email
} else if (_.isString(profile.mail) && profile.mail.length > 5) {
primaryEmail = profile.mail
} else if (profile.user && profile.user.email && profile.user.email.length > 5) {
primaryEmail = profile.user.email
} else {