is there documentation for nodebb inbuilt libraries (USER,CATEGORIES,POST,META,DB) ?
@julian thank you! I'll take a look into that plugin
I got it now , thank you guys
It seems require('socket.io').reqFromSocket(socket) doesn't returns a valid req for AuthController.doLogin.... i want to authenticate via websocket but maybe i will have to do it the old POST way, am i correct?
@PitaJ thank you very much ! ,I will try it later.
Those userrs are stored in groups with special names, here are the names assuming the category id is 1.
You can get the user ids from these groups by.
Groups.getMembers('cid:1:privileges:find', 0, -1, callback); This will give you all the user ids that have the find permission for category 1.
If you want to get their basic info like username picture slug so you can show user icons you can just use Groups.getMemberUsers('cid:1:privileges:find', 0, -1, calllback);