diff --git a/lib/models/user.js b/lib/models/user.js index e1a373d6b..b7ef12959 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -63,6 +63,9 @@ module.exports = function (sequelize, DataTypes) { case "github": photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=48'; break; + case "gitlab": + photo = profile.avatarUrl; + break; case "dropbox": //no image api provided, use gravatar photo = 'https://www.gravatar.com/avatar/' + md5(profile.emails[0].value);