mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
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:
parent
de669c7b93
commit
0dff8796ac
1 changed files with 3 additions and 0 deletions
|
@ -141,6 +141,9 @@ module.exports = function (sequelize, DataTypes) {
|
||||||
case 'saml':
|
case 'saml':
|
||||||
photo = generateAvatarURL(profile.username, profile.emails[0], bigger)
|
photo = generateAvatarURL(profile.username, profile.emails[0], bigger)
|
||||||
break
|
break
|
||||||
|
default:
|
||||||
|
photo = generateAvatarURL(profile.username)
|
||||||
|
break
|
||||||
}
|
}
|
||||||
return photo
|
return photo
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue