I want to replace the res.json(user); line 103 by the total unread for the user... but i'm not familiar with nodebb code architecture and don't know how to get this value... i hope somebody can help me^^
I did disable the option in the API-write module, and now it's working in a shell terminal when I send the above CURL command.
But when I try to use CURL in HTTPS within my PHP program,
I get this message (401) : A valid login session was not found. Please log in and try again.
I don't understand why I get this message, because :
I'm sending the Master token in the Header by calling the PHP function curl_setopt with the option CURLOPT_HTTPHEADER
I try to send the credentials (login/password) by calling the PHP function curl_setopt with the option CURLOPT_USERPWD and login/password.
Hmm... there's always /nickserv identify, but I have absolutely zero idea how that even works.
What if you made your own bot that listened for private messages from users, and verified them? So all I had to do was /yourbot julian hunter2?
Then your bot would probably communicate with a companion plugin on our end to verify users by username/password... There's a possibly MITM issue present if you don't use HTTPS though... less so if everything is on one machine and you're communicating via localhost connections...
We have a system consisting of several server side Node.js components. We would like to integrate NodeBB in our system as the 'forum' server. Our client do not reside in a browser and they use some external protocol such as XMPP to communicate with our backend server.
We would have a server component that translates XMPP and then interface with NodeBB. There are two possibilities, one is to run NodeBB in the same Node.js runtime as our server. And the other is to run NodeBB in a separate Node,js runtime and have the server talk to NodeBB using some wire protocol.
What is the best way to achieve this? We could not find any document regarding any external APIs or protocol that can be used.