mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-19 14:01:02 +01:00
Merge branch 'review/pr-76' into review/pr-77
This commit is contained in:
commit
a1ca52d4e6
1 file changed
+1
-1
@@ -18,7 +18,7 @@ use serde_json::{Value, json};
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "control_server.test.rs"]
|
||||
mod auth_tests;
|
||||
mod exact_token_tests;
|
||||
|
||||
fn auth_ok(token: &str, method: &str, params: &Value) -> bool {
|
||||
method == "auth" && params.get("token").and_then(Value::as_str).is_some_and(|t| token_matches(token, t))
|
||||
|
||||
Reference in new issue
Block a user