portal: explain rotation check failures

This commit is contained in:
Brad Stein 2026-01-23 19:20:14 -03:00
parent b017775bdb
commit 66392a1ad0

View File

@ -946,10 +946,16 @@ async function confirmStep(step) {
} }
if (step.action === "auto") { if (step.action === "auto") {
if (step.id === "firefly_password_rotated") { if (step.id === "firefly_password_rotated") {
await runRotationCheck("firefly"); const result = await runRotationCheck("firefly");
if (result && result.rotated === false) {
throw new Error("Firefly still uses the initial password. Change it in Firefly, then confirm again.");
}
} }
if (step.id === "wger_password_rotated") { if (step.id === "wger_password_rotated") {
await runRotationCheck("wger"); const result = await runRotationCheck("wger");
if (result && result.rotated === false) {
throw new Error("Wger still uses the initial password. Change it in Wger, then confirm again.");
}
} }
await check(); await check();
return; return;