summaryrefslogtreecommitdiff
path: root/src/login/handlers/logout/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/handlers/logout/mod.rs')
-rw-r--r--src/login/handlers/logout/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/login/handlers/logout/mod.rs b/src/login/handlers/logout/mod.rs
index ce4cb1a..4bd7a89 100644
--- a/src/login/handlers/logout/mod.rs
+++ b/src/login/handlers/logout/mod.rs
@@ -42,9 +42,7 @@ impl IntoResponse for Error {
let Self(error) = self;
match error {
app::ValidateError::InvalidToken => Unauthorized.into_response(),
- app::ValidateError::Name(_) | app::ValidateError::Database(_) => {
- Internal::from(error).into_response()
- }
+ app::ValidateError::Failed(_) => Internal::from(error).into_response(),
}
}
}