fix: Option::Error caused endpoints that used ValidatedTicket become inaccessible to bots

Signed-off-by: İspik <ispik@ispik.dev>
This commit is contained in:
İspik
2026-06-22 21:35:42 +03:00
parent a386e84c7d
commit 07f2c3d77a

View File

@@ -51,7 +51,7 @@ impl<'r> FromRequest<'r> for ValidatedTicket {
Outcome::Error((Status::Forbidden, create_error!(InvalidToken))) Outcome::Error((Status::Forbidden, create_error!(InvalidToken)))
} }
} else { } else {
Outcome::Error((Status::Forbidden, create_error!(InvalidToken))) Outcome::Forward(Status::Unauthorized)
} }
} }
Outcome::Forward(f) => Outcome::Forward(f), Outcome::Forward(f) => Outcome::Forward(f),