mirror of
https://github.com/kepler155c/opus
synced 2026-11-17 11:54:29 +00:00
security
This commit is contained in:
1 parent
7438252fb4
commit
fbe2c9e909
1 file changed
+3
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user