summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSheogorath2019-05-26 22:19:22 +0200
committerGitHub2019-05-26 22:19:22 +0200
commite2990c56fd6d0c37f2b15cc793cbe595c88cf82f (patch)
treec4dbdfa018727494685f596394e8c9938f147272 /lib
parent515495bfbcdca133125c5d47412e9cccd34c4d80 (diff)
parent0dff8796ac52a4e2d0fa705559a226238bdb6c32 (diff)
Merge pull request #82 from SISheogorath/fix/doubleCount
Fix missing pictures for OpenID
Diffstat (limited to '')
-rw-r--r--lib/models/user.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/models/user.js b/lib/models/user.js
index 76e20a32..3daae45b 100644
--- a/lib/models/user.js
+++ b/lib/models/user.js
@@ -141,6 +141,9 @@ module.exports = function (sequelize, DataTypes) {
case 'saml':
photo = generateAvatarURL(profile.username, profile.emails[0], bigger)
break
+ default:
+ photo = generateAvatarURL(profile.username)
+ break
}
return photo
},