From dd192b34260ddb30505db83f89c3fcd468256be0 Mon Sep 17 00:00:00 2001 From: xuecong <> Date: Thu, 2 Dec 2021 16:34:32 +0800 Subject: [PATCH] fix access mistake --- server/src/utils/access.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/utils/access.ts b/server/src/utils/access.ts index c0081d2..20d6e96 100644 --- a/server/src/utils/access.ts +++ b/server/src/utils/access.ts @@ -50,7 +50,7 @@ export function decrypt(uid: string): DecryptResult { (type !== SELF_ACCESS_CODE && type !== VISTOR_ACCESS_CODE) || building_id === NaN || id === NaN || - /^\d{13}$/.test(stamp.toString()) + !/^\d{13}$/.test(stamp.toString()) ) { success = false; }