hedgedoc/lib/web/auth
Erik Michelson 6e983ba5dc
Use libravatar image if email address is defined
We use the attribute `emails` (plural) for email addresses with other auth providers like LDAP or SAML. In case of OAuth2 we used the attribute `email` (singular) which resulted in problems.
Furthermore the OAuth2 strategy fell into the default fallback of the provider switch statement. This statement did not check email addresses but did generate the letter-avatar instantly.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2022-01-07 14:01:32 +01:00
..
dropbox Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
email Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
facebook Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
github Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
gitlab Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
google Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
ldap Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
mattermost Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
oauth2 Use libravatar image if email address is defined 2022-01-07 14:01:32 +01:00
openid Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
saml SAML: Use privateKey option 2021-05-17 18:46:00 +02:00
twitter Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
index.js Add OpenID to CodiMD 2018-10-05 22:43:32 +02:00
utils.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00