Don’t allow WebSocket RPC authenticate
method to be called with no token value
This commit is contained in:
parent
d2e7a8532d
commit
926356d23b
1 changed files with 0 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue