R.C.M. commited on
Commit ·
a05631a
1
Parent(s): e18fa14
fix
Browse files- server/wsHandler.js +1 -2
server/wsHandler.js
CHANGED
|
@@ -86,10 +86,9 @@ async function buildUsagePayload(client, clientId = '') {
|
|
| 86 |
export async function handleWsMessage(ws, msg, wsClients) {
|
| 87 |
const client = wsClients.get(ws); if (!client) return;
|
| 88 |
// Require turnstile verification for most message types
|
| 89 |
-
if (!client.verified && msg.type !== 'ping' && msg.type !== 'turnstile:verify') {
|
| 90 |
return safeSend(ws, { type: 'error', message: 'turnstile:required' });
|
| 91 |
}
|
| 92 |
-
|
| 93 |
const bypassDeviceValidation = new Set([
|
| 94 |
'ping',
|
| 95 |
'turnstile:verify',
|
|
|
|
| 86 |
export async function handleWsMessage(ws, msg, wsClients) {
|
| 87 |
const client = wsClients.get(ws); if (!client) return;
|
| 88 |
// Require turnstile verification for most message types
|
| 89 |
+
if (!client.verified && msg.type !== 'ping' && msg.type !== 'turnstile:verify' && msg.type !== 'turnstile:confirm') {
|
| 90 |
return safeSend(ws, { type: 'error', message: 'turnstile:required' });
|
| 91 |
}
|
|
|
|
| 92 |
const bypassDeviceValidation = new Set([
|
| 93 |
'ping',
|
| 94 |
'turnstile:verify',
|