Fix bad http code

This commit is contained in:
Pierre HUBERT 2023-06-20 18:59:39 +02:00
parent 3004f57185
commit 053f08f927

View File

@ -170,7 +170,7 @@ impl FromRequest for LoginToken {
let token = match load_token_info(&token).await {
Err(e) => {
log::error!("Failed to load auth token! {}", e);
return Err(actix_web::error::ErrorInternalServerError(
return Err(actix_web::error::ErrorPreconditionFailed(
"Failed to check auth token!",
));
}