Turning off email verification for SSO
-
I'm trying to implement SSO for NodeBB and the session sharing plugin is working as designed. However, I'm unable to get the email verification turned off. I've added
await plugin.verifyUser(token, uid, isNewUser);
and that also seems to be working as the user shows up as verified
However, the verification email still gets sent out. Any suggestions on where to look? -
The code that sends the email is here https://github.com/NodeBB/NodeBB/blob/master/src/user/create.js#L112.
I think there used to be an option to turn it off, but it was removed during the email refactor to make it optional. Now if an email is supplied during registration a validation email is always sent.
Please open an issue on our github I think it makes sense to disable the emails if you are going to verify everyone via sso plugin.
-