aboutsummaryrefslogtreecommitdiff
path: root/src/auth.rs
diff options
context:
space:
mode:
authorfx <[email protected]>2023-10-21 20:46:31 +0200
committerfx <[email protected]>2023-10-21 20:46:31 +0200
commitf5928b90748b0bb4c0c498ccc77ebde4eaec8841 (patch)
treee17f41b5722b1e6d36b4ae55332eb89fdf57b4f0 /src/auth.rs
parent48943e0de28b99d7f108e96b7d250bbf1a6c5a5b (diff)
downloadwebol-f5928b90748b0bb4c0c498ccc77ebde4eaec8841.tar
webol-f5928b90748b0bb4c0c498ccc77ebde4eaec8841.tar.gz
webol-f5928b90748b0bb4c0c498ccc77ebde4eaec8841.zip
add init function for db tables
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 81e798f..0fffa60 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -25,6 +25,7 @@ pub fn auth(secret: Option<&HeaderValue>) -> Result<bool, AuthError> {
25 } 25 }
26} 26}
27 27
28#[derive(Debug)]
28pub enum AuthError { 29pub enum AuthError {
29 WrongSecret, 30 WrongSecret,
30 MissingSecret, 31 MissingSecret,
@@ -42,4 +43,4 @@ impl AuthError {
42 }, 43 },
43 } 44 }
44 } 45 }
45} \ No newline at end of file 46}