From 920496c85bdf0d017eaf837cbacd136d7d828669 Mon Sep 17 00:00:00 2001 From: fx Date: Sun, 8 Oct 2023 23:28:10 +0200 Subject: base web server --- src/auth.rs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/auth.rs (limited to 'src/auth.rs') diff --git a/src/auth.rs b/src/auth.rs new file mode 100644 index 0000000..b1ad76d --- /dev/null +++ b/src/auth.rs @@ -0,0 +1,3 @@ +pub fn auth(secret: &str) -> bool { + secret == "aaa" +} -- cgit v1.2.3