Hi, I need to write a plugin that shows a consent form to the user, if the user accepts then I have to flag it in the database, if he declines the user will be logged out.
Is there a way to extend the current user model? If not, I think I'll go with creating a separate database table and add a hook to read from it.
Also with either option I have to make a request from the client to the server, the project documentation is kinda lacking, do I have to read the source to find the correct calls, auth config , etc? or do I need to use this https://github.com/NodeBB/nodebb-plugin-write-api?