1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2025-02-05 13:52:33 -06:00

fix: Confirm when secure API key is provided

This commit is contained in:
Sayantan Santra 2025-01-06 11:48:18 +05:30
parent cca5bcfa1a
commit 16bc211f9f
Signed by: SinTan1729
GPG key ID: 0538DD402EA50898

View file

@ -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.")
}
}