From 053f08f9273da49b8328a06260c84d6c1bea4cb2 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Tue, 20 Jun 2023 18:59:39 +0200 Subject: [PATCH] Fix bad http code --- geneit_backend/src/services/login_token_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geneit_backend/src/services/login_token_service.rs b/geneit_backend/src/services/login_token_service.rs index 8b9e699..097012f 100644 --- a/geneit_backend/src/services/login_token_service.rs +++ b/geneit_backend/src/services/login_token_service.rs @@ -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!", )); }