From 16bc211f9fcb4c4008d40fc897dd1fb771be2b2d Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Mon, 6 Jan 2025 11:48:18 +0530 Subject: [PATCH] fix: Confirm when secure API key is provided --- actix/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actix/src/main.rs b/actix/src/main.rs index 5d41a4e..825ab4a 100644 --- a/actix/src/main.rs +++ b/actix/src/main.rs @@ -43,6 +43,8 @@ async fn main() -> Result<()> { if let Ok(key) = env::var("api_key") { if !auth::is_key_secure() { eprintln!("API key is insecure! Please change it. Current key is: {}. Generated secure key which you may use: {}", key, auth::gen_key()) + } else { + eprintln!("Secure API key was provided.") } }