Skip to content

Commit

Permalink
v2.16.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Mar 21, 2024
1 parent 6b20625 commit 359d2c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/src/middleware/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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) {
Expand Down

0 comments on commit 359d2c0

Please sign in to comment.