From 4b5979333eb0ee9f0f30ed84ca0574951696307a Mon Sep 17 00:00:00 2001 From: dadaloop82 Date: Fri, 10 Apr 2026 06:57:46 +0000 Subject: [PATCH] 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. --- assets/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/app.js b/assets/js/app.js index 29dcffd..67ec0ba 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -8839,9 +8839,9 @@ function _getMissingSetupSteps(serverSettings) { missing.push(0); } // 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) - 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 return missing;