diff --git a/Payload/Data/Interface/GlueXML/AutoLogin.lua b/Payload/Data/Interface/GlueXML/AutoLogin.lua index 979af09..1de8568 100644 --- a/Payload/Data/Interface/GlueXML/AutoLogin.lua +++ b/Payload/Data/Interface/GlueXML/AutoLogin.lua @@ -382,6 +382,13 @@ function LoginManager:LoadAccounts() self.State.accounts = {} self.State.last = nil + -- Secure-by-default: when Nampower encryption is available, enable it for + -- fresh/legacy AutoLogin state. A saved explicit false value is restored + -- below, so users who deliberately turned Encrypt off keep their choice. + if has_encryption and self.State.encrypt_passwords == nil then + self.State.encrypt_passwords = true + end + local login_data = ImportFile("logins") local file = self:FromFile("logins") if file then