Login account using C++
-
I want to make software product with a login to NodeBB account, the software is written in C++, to provide binary executives to my clients. How could I login into NodeBB using C++? Could anyone give some clues? Thanks in advance.
-
@jiangcaiyang NodeBB's API works with HTTP and WebSockets. Therefore, you could possibly write a C++ program that sends HTTP requests / websocket to login users. I don't have ask the details, so you should look through the NodeBB source code to figure out how they do it.
You could alternatively create a NodeBB plugin that could expose a simpler HTTP API. That could make your C++ code easier to implement.
-
@PitaJ I notice the normal login procedure is that filling a <form> elements and do jQuery's ajaxSubmit. If all is to send ajax submission, how could we rewrite it into C++ equivalent to ajax submission?
-
@jiangcaiyang ajax is just an HTTP request with JavaScript. If you just mimic the request (you can log a request with the chrome dev tools), it doesn't matter where the request is from, it should respond the same.