Can you point me to that location, where I can find and extend the USER model, to include the USER EMAIL ADDRESS ?
The expectation is that the EMAIL ADDRESS should be persisted in the DB and be available across USER login sessions.
I made these plugins, I thought somebody else might want to use them as-is, fork them, etc. Both were tested with 0.9.x. Neither are configurable via ACP so I didn't publish to NPM, but wanted to share anyway:
Filters out profanity in posts and post titles. Also supports custom word list via environment variable PROFANITY_FILTER.
Email Domain Filter:
Set env var EMAIL_DOMAIN_FILTERfirstname.lastname@example.org and only let people with an @club.org email address sign up.
If you don't mind getting your hands dirty you can modify core and change PostTools.parse
I was thinking to extract the topic id from data.url and pass it back to the plugin backend to store, and then limit my plugin to one instance per topic for now. But I think that would be even worst, and when 0.6.0 arrives I would have to fix it anyways.
I am a bit scared to touch the core stuff, but I may give your suggestion a try since it is less hacky, and better long term solution.
I've added to user hash a custom field where my plugin based on nodebb-plugins-login-mysite store the user remote uid.
I've to get user data using the remoteid custom field, i've take a look to https://github.com/NodeBB/NodeBB/blob/v1.10.x/src/controllers/user.js#L64 but i don't understand how i can do.