From fbe2c9e9097cd0bd43c7e59d463463b3f29cda2e Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Thu, 18 May 2017 05:02:13 -0400 Subject: [PATCH] security --- sys/extensions/os.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/extensions/os.lua b/sys/extensions/os.lua index 148f688..fdfd01c 100644 --- a/sys/extensions/os.lua +++ b/sys/extensions/os.lua @@ -62,11 +62,11 @@ end function os.getSecretKey() Config.load('os', config) - if not os.secretKey then - os.secretKey = math.random(100000, 999999) + if not config.secretKey then + config.secretKey = math.random(100000, 999999) Config.update('os', config) end - return os.secretKey + return config.secretKey end function os.updatePassword(password)