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:
parent
cca5bcfa1a
commit
16bc211f9f
1 changed files with 2 additions and 0 deletions
|
@ -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.")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue