mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
fix(emails): send emails to new fb users
This commit is contained in:
parent
f243617ccf
commit
92a6af72cf
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ function getUserInfo(user, fields) {
|
|||
}
|
||||
|
||||
if(fields.indexOf('email') != -1){
|
||||
if(user.auth.local){
|
||||
if(user.auth.local && user.auth.local.email){
|
||||
info.email = user.auth.local.email;
|
||||
}else if(user.auth.facebook && user.auth.facebook.emails && user.auth.facebook.emails[0] && user.auth.facebook.emails[0].value){
|
||||
info.email = user.auth.facebook.emails[0].value;
|
||||
|
|
|
|||
Loading…
Reference in a new issue