diff options
author | FxQnLr <[email protected]> | 2023-10-21 21:31:02 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-21 21:31:02 +0200 |
commit | e8a8b2d33eec5da6701b04181b14de755e8b8063 (patch) | |
tree | 5cd77421900fd8ec02f05d15e6fb195f28dfceb4 /src/auth.rs | |
parent | 48943e0de28b99d7f108e96b7d250bbf1a6c5a5b (diff) | |
parent | bf1aeb7191bfaa75f1acf47c675bc68b9fac1cd8 (diff) | |
download | webol-e8a8b2d33eec5da6701b04181b14de755e8b8063.tar webol-e8a8b2d33eec5da6701b04181b14de755e8b8063.tar.gz webol-e8a8b2d33eec5da6701b04181b14de755e8b8063.zip |
Merge pull request #4 from FxQnLr/database-init
int db in process
Diffstat (limited to 'src/auth.rs')
-rw-r--r-- | src/auth.rs | 3 |
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)] | ||
28 | pub enum AuthError { | 29 | pub 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 | } |