Retrieve GitLab avatar.
This commit is contained in:
parent
e65d43bd81
commit
0adc0864d5
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,9 @@ module.exports = function (sequelize, DataTypes) {
|
||||||
case "github":
|
case "github":
|
||||||
photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=48';
|
photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=48';
|
||||||
break;
|
break;
|
||||||
|
case "gitlab":
|
||||||
|
photo = profile.avatarUrl;
|
||||||
|
break;
|
||||||
case "dropbox":
|
case "dropbox":
|
||||||
//no image api provided, use gravatar
|
//no image api provided, use gravatar
|
||||||
photo = 'https://www.gravatar.com/avatar/' + md5(profile.emails[0].value);
|
photo = 'https://www.gravatar.com/avatar/' + md5(profile.emails[0].value);
|
||||||
|
|
Loading…
Reference in a new issue