See GitHub for reference, https://github.com/LM1LC3N7/nodebb-plugin-private-forum/issues/4#issuecomment-1034840197
Wondering if anyone has an idea why the calendar page is accessible when not logged in while using the private forum plugin.
I'll define my requirements in the form of conversation.
I understand how to achieve this, my concern is getting the data and specifying custom routes and permissions.
Using only the currently logged in nodebb user and minecraft player.
Two routes needed:
/mc/link?key=key
/mc/link/:uuid/:key
Minimum two DB keys need:
{uuid}:key
String key, stores the unique player key for the UUID. (Could also be a hash to store additional data.)user:{uid}:uuid
String key, stores the UUID linked to the user. (Could also be stored on the user hash, or made into a set for multiple linkings.)On the last line in the diagram, I send a confirmation message, but we can't actually do this because we have not established a persistent connection. You could solve this by either having an http server on the server, or creating a socket connection to the forum.
Or you could use Minecraft-Integration