summaryrefslogtreecommitdiff
path: root/lib/models
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models')
-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
},