Skip to content

Commit

Permalink
fix vistor access
Browse files Browse the repository at this point in the history
  • Loading branch information
xuecong committed Jan 25, 2022
1 parent 168a2be commit 42de479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/utils/access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 42de479

Please sign in to comment.