summaryrefslogtreecommitdiff
path: root/src/login/routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/routes.rs')
-rw-r--r--src/login/routes.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/routes.rs b/src/login/routes.rs
index 06e5853..31a68d0 100644
--- a/src/login/routes.rs
+++ b/src/login/routes.rs
@@ -6,7 +6,7 @@ use axum::{
Router,
};
-use crate::{app::App, clock::RequestedAt, error::InternalError, repo::login::Login};
+use crate::{app::App, clock::RequestedAt, error::Internal, repo::login::Login};
use super::{app, extract::IdentityToken};
@@ -66,7 +66,7 @@ impl IntoResponse for LoginError {
app::LoginError::Rejected => {
(StatusCode::UNAUTHORIZED, "invalid name or password").into_response()
}
- other => InternalError::from(other).into_response(),
+ other => Internal::from(other).into_response(),
}
}
}
@@ -99,7 +99,7 @@ impl IntoResponse for LogoutError {
error @ app::ValidateError::InvalidToken => {
(StatusCode::UNAUTHORIZED, error.to_string()).into_response()
}
- other => InternalError::from(other).into_response(),
+ other => Internal::from(other).into_response(),
}
}
}