Skip to content

Commit b96cc4e

Browse files
author
Jason Croft
committed
Retrieve GitLab avatar.
1 parent a3876df commit b96cc4e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/models/user.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ module.exports = function (sequelize, DataTypes) {
6363
case "github":
6464
photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=48';
6565
break;
66+
case "gitlab":
67+
photo = profile.avatarUrl;
68+
break;
6669
case "dropbox":
6770
//no image api provided, use gravatar
6871
photo = 'https://www.gravatar.com/avatar/' + md5(profile.emails[0].value);

0 commit comments

Comments
 (0)