From 70f22e69c82cac1fcfd3b83c141196680081fca0 Mon Sep 17 00:00:00 2001 From: fufesou Date: Sat, 21 Mar 2026 09:44:08 +0800 Subject: [PATCH] fix(password): Comments log error Signed-off-by: fufesou --- src/config.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.rs b/src/config.rs index b91ed4b5d..3c21425be 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1403,6 +1403,10 @@ impl Config { let mut salt = config.salt.clone(); if salt.is_empty() { if !can_update_salt(&config.password) { + // This shouldn't happen under normal circumstances because the salt + // 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(); }