Skip sentinel password migration when no SSO IdP configured. (59791db213) (#313)

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-03-06 05:49:56 +00:00
parent b20ad8a622
commit 9a2000744c

View File

@@ -598,6 +598,11 @@ async fn fix_hashed_sentinel_passwords(services: &Services) -> Result {
const PASSWORD_SENTINEL: &str = "*";
if services.config.identity_provider.is_empty() {
debug!("Skipping sentinel password migration since no SSO IdP configured.");
return Ok(());
}
let db = &services.db;
let cork = db.cork_and_sync();
let userid_password = db["userid_password"].clone();