summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Müller <neikos@neikos.email>2023-01-04 10:53:00 +0100
committerMarcel Müller <neikos@neikos.email>2023-01-04 10:58:49 +0100
commit12bf29ffe6fee6f211a09dd44f836b779f05692c (patch)
tree9cb78987207537291c8fa59266343b974954f0d4
parentf5b2e8f9b609ba30c552ec6e5d1d4849a678e632 (diff)
Add InvalidPassword LoginError
Signed-off-by: Marcel Müller <neikos@neikos.email>
-rw-r--r--src/server/login.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/login.rs b/src/server/login.rs
index c964f39..fbd0f54 100644
--- a/src/server/login.rs
+++ b/src/server/login.rs
@@ -9,7 +9,11 @@ use crate::server::ClientId;
/// Errors that can occur during login
#[derive(Debug, thiserror::Error)]
-pub enum LoginError {}
+pub enum LoginError {
+ /// The given password did not match
+ #[error("The given password did not match")]
+ InvalidPassword,
+}
/// Objects that can handle authentication implement this trait
#[async_trait::async_trait]