diff options
author | Cheng-Han, Wu | 2016-05-15 10:58:53 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-05-15 10:58:53 +0800 |
commit | 22f7c4bdcb97ab9ce41fea61975783a3cf0fdb97 (patch) | |
tree | bcbf39c232748900cbdbf0c9a4b45591657bac50 /lib/models | |
parent | a70ebf77620d6c5651e092cc4998c416161746cf (diff) | |
parent | 73835763c66a1e25ee1510a4a9d52c073115a39a (diff) |
Merge branch 'jccrofty30-gitlab_authentication'
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/user.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/models/user.js b/lib/models/user.js index e1a373d6..b7ef1295 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); |