[MOD] Conceal Parsee IDs

Those are meant to be secrets, unknowns. No one, except Parsee itself
should be aware about it. I may add a `parsee-regen` tool, but it shall
not show it.
This commit is contained in:
LDA 2024-08-18 16:41:52 +02:00
commit 198bdb98e9

View file

@ -42,14 +42,13 @@ ParseeInitData(XMPPComponent *comp)
if (!(ref = DbLock(data->db, 1, "info")))
{
char *id = StrRandom(8);
char *id = StrRandom(64);
ref = DbCreate(data->db, 1, "info");
HashMapSet(DbJson(ref), "identifier", JsonValueString(id));
Free(id);
}
data->id = StrDuplicate(GrabString(DbJson(ref), 1, "identifier"));
Log(LOG_DEBUG, "- Parsee ID: %s", data->id);
DbUnlock(data->db, ref);
#define X_ROUTE(path, func) do {\