feat: redesign CMS and unify German admin UI
This commit is contained in:
@@ -3,13 +3,13 @@ import { createHash, randomBytes } from "node:crypto";
|
||||
/** How long a freshly issued email-verification link stays valid. */
|
||||
export const EMAIL_VERIFICATION_TTL_MS = 24 * 60 * 60 * 1000;
|
||||
|
||||
/** 256 bits of randomness, hex-encoded — not guessable, never derived from user data. */
|
||||
/** 256 bits of randomness, hex-encoded - not guessable, never derived from user data. */
|
||||
export function generateVerificationToken(): string {
|
||||
return randomBytes(32).toString("hex");
|
||||
}
|
||||
|
||||
/**
|
||||
* Only this hash is ever persisted (see collections/Customers.ts) — the
|
||||
* Only this hash is ever persisted (see collections/Customers.ts) - the
|
||||
* plaintext token exists only in the URL sent by email and briefly in
|
||||
* memory while that email is being sent.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user