-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi there,
I am confused on how to set up the plugin to use an existing user based on their email address.
Currently, as soon as I log in with my own OAuth2 Strategy (which comes with the verified email flag set), it still creates another user:
I thought it would help to enable Use email as username (overrides previous option)
in Preferences, but that did not help either. I also checked Automatically confirm emails when email_verified is true'.
I have had a look at the login code and if I am not mistaken it is supposed to do this already, so there seems to be something wrong with it.
nodebb-plugin-sso-oauth2-multiple/library.js
Lines 226 to 229 in 43c7414
// Check for user via email fallback | |
if (email && email_verified) { | |
uid = await user.getUidByEmail(payload.email); | |
} |
gagik
Metadata
Metadata
Assignees
Labels
No labels