From 1861bf30d8e76e42749f33c77c157f76330876db Mon Sep 17 00:00:00 2001 From: a-fultz <169102024+a-fultz@users.noreply.github.com> Date: Tue, 7 May 2024 13:40:07 -0700 Subject: [PATCH] Update optional-checks.js Check whether Authentication Mode requires user authentication. --- lib/doctor/optional-checks.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/doctor/optional-checks.js b/lib/doctor/optional-checks.js index 0ea25b3..41bae1e 100644 --- a/lib/doctor/optional-checks.js +++ b/lib/doctor/optional-checks.js @@ -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() {