Fix linting issue (#6178)

* Fix linting issue

Removing a query that eslint is complaining about. Will fix next week - wether by adding ignore rules or figuring out a way to escape the tons of backslashes windows wants

* Fix linting issue

Putting query back in but with escaped backslashes, which should fix the linting issue and still work in the UI.
This commit is contained in:
Guillaume Ross 2022-06-10 13:17:29 -04:00 committed by GitHub
parent af52cd9f6b
commit bda0ad90ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,9 +162,10 @@ export const DEFAULT_POLICIES = [
{
key: 15,
query:
"SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\InactivityTimeoutSecs' AND CAST(data as INTEGER) <= 1800;",
"SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\InactivityTimeoutSecs' AND CAST(data as INTEGER) <= 1800;",
name: "Screen lock enabled (Windows)",
description: "Checks if the screen lock is enabled and configured to lock the system within 30 minutes or less.",
description:
"Checks if the screen lock is enabled and configured to lock the system within 30 minutes or less.",
resolution:
"Ask your IT administrator to enable the Interactive Logon: Machine inactivity limit setting with a value of 1800 seconds or lower.",
platform: "windows",