feat: redesign CMS and unify German admin UI
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { randomInt } from "node:crypto";
|
||||
|
||||
// Unambiguous alphabet (no 0/O/1/I/l) — easier to read aloud/type correctly.
|
||||
// Unambiguous alphabet (no 0/O/1/I/l) - easier to read aloud/type correctly.
|
||||
const ALPHABET = "ABCDEFGHJKMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz23456789";
|
||||
|
||||
/**
|
||||
* Cryptographically random meeting password, e.g. "K7mQ-42Px". Independent
|
||||
* of the event's id/slug — never derive it from the meeting identifier.
|
||||
* of the event's id/slug - never derive it from the meeting identifier.
|
||||
*/
|
||||
export function generateMeetingPassword(): string {
|
||||
const chars = Array.from({ length: 8 }, () => ALPHABET[randomInt(ALPHABET.length)]);
|
||||
|
||||
Reference in New Issue
Block a user