diff --git a/lib/models/user.js b/lib/models/user.js index 76e20a329..3daae45be 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 },