summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSheogorath2019-05-26 03:53:40 +0200
committerSheogorath2019-05-26 03:53:59 +0200
commit0dff8796ac52a4e2d0fa705559a226238bdb6c32 (patch)
tree440a409c56229bb6a097b7dbeb9df39bc0c45f1b /lib
parentde669c7b93a69966cee119ffda0da8b78e83a55a (diff)
Fix missing pictures for OpenID
Currently a problem appears when using OpenID for authentication as there is no method to add a profile picture right now. This patch makes sure that all undefined login methods get a profile picture. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
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
},