fix: use bring_password_set and gemini_key_set flags from server API

The server never exposes bring_password in plaintext (only bring_password_set).
Fix wizard to check the boolean flag instead of the empty string.
This commit is contained in:
dadaloop82
2026-04-10 06:57:46 +00:00
parent 82f147d8d5
commit 4b5979333e
+2 -2
View File
@@ -8839,9 +8839,9 @@ function _getMissingSetupSteps(serverSettings) {
missing.push(0); missing.push(0);
} }
// Step 1 — Gemini API key (check both localStorage and server .env) // Step 1 — Gemini API key (check both localStorage and server .env)
if (!s.gemini_key && !srv.gemini_key) missing.push(1); if (!s.gemini_key && !srv.gemini_key && !srv.gemini_key_set) missing.push(1);
// Step 2 — Bring! credentials (check both localStorage and server .env) // Step 2 — Bring! credentials (check both localStorage and server .env)
if ((!s.bring_email && !srv.bring_email) || (!s.bring_password && !srv.bring_password)) missing.push(2); if ((!s.bring_email && !srv.bring_email) || (!s.bring_password && !srv.bring_password_set)) missing.push(2);
// Note: step 3 (done screen) gets appended automatically when there are missing steps // Note: step 3 (done screen) gets appended automatically when there are missing steps
return missing; return missing;