From 926356d23b567c8e22b42354aca11fb382ef4b79 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 25 Oct 2022 06:24:47 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20allow=20WebSocket=20RPC=20`auth?= =?UTF-8?q?enticate`=20method=20to=20be=20called=20with=20no=20token=20val?= =?UTF-8?q?ue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/net/rpc.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/net/rpc.rs b/src/net/rpc.rs index ebe0763f..bcf3158c 100644 --- a/src/net/rpc.rs +++ b/src/net/rpc.rs @@ -208,7 +208,6 @@ impl Rpc { _ => return res::failure(id, Failure::INVALID_PARAMS).send(out, chn).await, }, "authenticate" => match params.take_one() { - Value::None => rpc.write().await.invalidate().await, Value::Strand(v) => rpc.write().await.authenticate(v).await, // Authenticate using an authentication token _ => return res::failure(id, Failure::INVALID_PARAMS).send(out, chn).await,