Commit 2e887e72 authored by Johan McGwire's avatar Johan McGwire

Respecting DisableFDEAutoLogin preference instead of internal

parent 930b0c8a
Pipeline #74189319 passed with stage
in 1 minute and 58 seconds
......@@ -32,8 +32,6 @@ enum Preferences: String {
/// List of groups that should have it's members allowed to sign in. Set as an Array of Strings of the group name
case DenyLoginUnlessGroupMember
/// Should FDE be enabled at first login on APFS disks? Set as a `Bool`.
case DisableFDEAutoLogin
/// A Bool to determine if FDE autologin should be disabled.
case EnableFDE
/// Should the PRK be saved to disk for the MDM Escrow Service to collect? Set as a `Bool`.
case EnableFDERecoveryKey
......@@ -51,8 +51,8 @@ class CheckAD: NoLoMechanism {
func useAutologin() -> Bool {
if getManagedPreference(key: .DisableFDEAutoLogin) as? Bool == true {
os_log("FDE AutoLogin Disabled per preference key", log: checkADLog, type: .debug)
if UserDefaults(suiteName: "")?.bool(forKey: "DisableFDEAutoLogin") ?? false {
os_log("FDE AutoLogin Disabled per loginwindow preference key", log: checkADLog, type: .debug)
return false
......@@ -17,7 +17,7 @@
<string>Copyright © 2019 Orchard &amp; Grove. All rights reserved.</string>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment