diff --git a/server/src/utils/access.ts b/server/src/utils/access.ts index 0b2edd2..0baa4a0 100644 --- a/server/src/utils/access.ts +++ b/server/src/utils/access.ts @@ -29,7 +29,7 @@ export function encrypt( building_id: number, type: typeof SELF_ACCESS_CODE | typeof VISTOR_ACCESS_CODE ): string { - return crypto.encrypt(`${id}#${building_id}#${type}${Date.now()}`); + return crypto.encrypt(`${id}#${building_id}#${type}#${Date.now()}`); } export function decrypt(uid: string): DecryptResult {