From 359d2c0abb4d4a5959784934f328f72152d1272c Mon Sep 17 00:00:00 2001 From: Dooy Date: Thu, 21 Mar 2024 10:03:34 +0800 Subject: [PATCH] v2.16.4 --- service/src/middleware/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/middleware/auth.ts b/service/src/middleware/auth.ts index bfe4ad438..6e3e02bba 100644 --- a/service/src/middleware/auth.ts +++ b/service/src/middleware/auth.ts @@ -121,7 +121,7 @@ export const turnstileCheck= async ( req :Request , res:Response , next:NextFunc } try{ const Authorization = req.header('X-Vtoken') - if ( !Authorization ) throw new Error('Error: 无权限,请刷新重试 | No access rights by Turnstile') + if ( !Authorization ) throw new Error('无权限访问,请刷新重试 | No access rights by Turnstile') const SECRET_KEY= process.env.TURNSTILE_SECRET_KEY let formData = new FormData(); @@ -136,7 +136,7 @@ export const turnstileCheck= async ( req :Request , res:Response , next:NextFunc const outcome:any = await result.json(); //console.log('outcome>> ', outcome ); - if (!outcome.success) throw new Error('Error: 无权限,请刷新重试 | No access rights by Turnstile') + if (!outcome.success) throw new Error('无权限访问,请刷新重试 | No access rights by Turnstile') next(); }catch (error) {