mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 16:55:10 +00:00
[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:
parent
59cbd8b22d
commit
198bdb98e9
1 changed files with 1 additions and 2 deletions
|
|
@ -42,14 +42,13 @@ ParseeInitData(XMPPComponent *comp)
|
||||||
|
|
||||||
if (!(ref = DbLock(data->db, 1, "info")))
|
if (!(ref = DbLock(data->db, 1, "info")))
|
||||||
{
|
{
|
||||||
char *id = StrRandom(8);
|
char *id = StrRandom(64);
|
||||||
ref = DbCreate(data->db, 1, "info");
|
ref = DbCreate(data->db, 1, "info");
|
||||||
HashMapSet(DbJson(ref), "identifier", JsonValueString(id));
|
HashMapSet(DbJson(ref), "identifier", JsonValueString(id));
|
||||||
Free(id);
|
Free(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
data->id = StrDuplicate(GrabString(DbJson(ref), 1, "identifier"));
|
data->id = StrDuplicate(GrabString(DbJson(ref), 1, "identifier"));
|
||||||
Log(LOG_DEBUG, "- Parsee ID: %s", data->id);
|
|
||||||
DbUnlock(data->db, ref);
|
DbUnlock(data->db, ref);
|
||||||
|
|
||||||
#define X_ROUTE(path, func) do {\
|
#define X_ROUTE(path, func) do {\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue