Add support of google signin
This commit is contained in:
@@ -76,6 +76,9 @@ module.exports = function (sequelize, DataTypes) {
|
||||
//no image api provided, use gravatar
|
||||
photo = 'https://www.gravatar.com/avatar/' + md5(profile.emails[0].value);
|
||||
break;
|
||||
case "google":
|
||||
photo = profile.photos[0].value.replace(/(\?sz=)\d*$/i, '$196');
|
||||
break;
|
||||
}
|
||||
return photo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user