How I get cookie in standard plugin hook nodebb?
boost on this thread -- i totally agree / would love to hear from the community about this!
I would like to make my NodeBB forum to write a cookie when the
I found the function that is executed when user is logged in successfully: authenticationController.onSuccessfulLogin.
How to make this function also to write a cookie?
I tried to guess, but it did not work:
Also I would like this cookie to be removed when the user is not logged in.
I need this cookie in order to make another layer of caching (for non-logged in users) using Nginx and to test how it will work.
Is it possible this to be made by a plugin?
hey Guys! i need help, if anyone can put me to a right direction on creating a sidebar form that could send to an API with JSON format?
parts of the things it could send is:
show only in:
@markkus What cloudflare package do you have? Also can you link your forum 😛
@pitaj router and app are both routers, per se. However, router refers to a separate router instantiated specifically for plugins to use.
When NodeBB reloads, the plugin router gets regenerated, while the application router does not.
This allows plugins to be both activated and deactivated without a full restart.
... You also cannot overwrite existing application routes in app, though you weren't allowed to do that for awhile now.