• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Turning off email verification for SSO

Scheduled Pinned Locked Moved Solved Technical Support
4 Posts 2 Posters 301 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    razibal
    wrote on last edited by
    #1

    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 Screenshot 2022-04-21 at 08-57-28 Manage Users NodeBB Admin Control Panel.png
    However, the verification email still gets sent out. Any suggestions on where to look?

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    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.

    R 1 Reply Last reply
    0
  • R razibal has marked this topic as solved on
  • R Offline
    R Offline
    razibal
    replied to <baris> on last edited by
    #3

    @baris Thank you, I'll open an issue on Github.

    barisB 1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    replied to razibal on last edited by
    #4

    @razibal Looks like the setting is still there, you should be able to disable verification emails in the ACP. https://github.com/NodeBB/NodeBB/commit/09e0c6d503e4267087f3695755e20fd94df312a9

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development