Any way to keep track of users old email address?
-
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?
-
@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.
Copyright © 2024 NodeBB | Contributors