From 6fcda1dcc4f143ced626ba371796090724da3333 Mon Sep 17 00:00:00 2001 From: fufesou Date: Sun, 22 Mar 2026 20:25:26 +0800 Subject: [PATCH] fix(password): get_salt() always return value Signed-off-by: fufesou --- src/config.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 8667756db..83176e78a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1356,8 +1356,7 @@ impl Config { // should be automatically generated when migrating to hash storage. // However, if it does occur, it's best to log the error, // even though this will result in logging many duplicate error messages. - log::error!("Salt is empty but permanent password is hashed"); - return String::new(); + log::warn!("Salt is empty but permanent password is hashed"); } drop(config); salt = Config::get_auto_password(DEFAULT_SALT_LEN);