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>
This commit is contained in:
Sheogorath 2019-05-26 03:53:40 +02:00
parent de669c7b93
commit 0dff8796ac
No known key found for this signature in database
GPG Key ID: 1F05CC3635CDDFFD
1 changed files with 3 additions and 0 deletions

View File

@ -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
},