diff options
author | Sheogorath | 2019-05-26 22:19:22 +0200 |
---|---|---|
committer | GitHub | 2019-05-26 22:19:22 +0200 |
commit | e2990c56fd6d0c37f2b15cc793cbe595c88cf82f (patch) | |
tree | c4dbdfa018727494685f596394e8c9938f147272 /lib/models | |
parent | 515495bfbcdca133125c5d47412e9cccd34c4d80 (diff) | |
parent | 0dff8796ac52a4e2d0fa705559a226238bdb6c32 (diff) |
Merge pull request #82 from SISheogorath/fix/doubleCount
Fix missing pictures for OpenID
Diffstat (limited to '')
-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 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 }, |