Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

chore: add comment about `manualKey`

Rudy B.c8086403dbc2
diff --git a/src/app/api/2fa/setup/initiate/route.ts b/src/app/api/2fa/setup/initiate/route.ts
index d55c2f7e6..43a83f191 100644
--- a/src/app/api/2fa/setup/initiate/route.ts
+++ b/src/app/api/2fa/setup/initiate/route.ts
@@ -34,5 +34,9 @@ export async function POST(request: Request) {
create: { userId, secret: encryptedSecret, isEnabled: false },
});
+ /*
+ `manualKey` is intentionally plaintext as the user needs it once for manual entry.
+ The encrypted copy in DB is what matters for long-term storage.
+ */
return json({ qrCodeDataUrl, manualKey: secret });
}