Skip to content

Commit

Permalink
fix: Optional Automation Mode user authentication check
Browse files Browse the repository at this point in the history
  • Loading branch information
a-fultz authored May 8, 2024
1 parent 7528850 commit 339c5c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/doctor/optional-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export class OptionalAutomationModeCheck {
} catch (err) {
return doctor.nokOptional(`Cannot run 'automationmodetool': ${err.stderr || err.message}`);
}
if (stdout.includes('disabled')) {
return doctor.nokOptional(`Automation Mode is disabled`);
if (stdout.includes('DOES NOT REQUIRE')) {
return doctor.okOptional(`Automation Mode does not require user authentication`);
}
return doctor.okOptional(`Automation Mode is enabled`);
return doctor.nokOptional(`Automation Mode requires user authentication`);
}

async fix() {
return `Run \`automationmodetool enable-automationmode-without-authentication\` to enable Automation Mode`;
return `Run \`automationmodetool enable-automationmode-without-authentication\` to disable Automation Mode authentication`;
}

hasAutofix() {
Expand Down

0 comments on commit 339c5c9

Please sign in to comment.