• 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

Any way to keep track of users old email address?

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 3.1k 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.
  • G Offline
    G Offline
    gvimlan
    wrote on last edited by
    #1

    Greetings everyone

    I m finding for any plugin or feature that can keep track of users old email address although they change to new email address later on after signing up.
    This is the scenario.

    • I have restricted to allow users only with specific email address. The users used the specific email address and sign up. Later they can edit the email address(restricted) to a new one. But they can also use their old email address to register new account.

    Is there any way to store all the users email address or something like that?

    MegaM 1 Reply Last reply
    0
  • MegaM Offline
    MegaM Offline
    Aza Noriega Community Rep
    replied to gvimlan on last edited by Mega
    #2

    @gvimlan You can listen to the filter:user.updateProfile hook
    https://github.com/NodeBB/NodeBB/blob/master/src/user/profile.js#L21
    and restrict email changing.

    UPD: You see that conditional statement, right?
    https://github.com/NodeBB/NodeBB/blob/master/src/user/profile.js#L38-L40
    You need to just always make it = null; inside your listener, that's it.

    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