mirror of
https://github.com/kepler155c/opus
synced 2024-06-14 17:29:59 +00:00
security
This commit is contained in:
parent
7438252fb4
commit
fbe2c9e909
|
@ -62,11 +62,11 @@ end
|
||||||
|
|
||||||
function os.getSecretKey()
|
function os.getSecretKey()
|
||||||
Config.load('os', config)
|
Config.load('os', config)
|
||||||
if not os.secretKey then
|
if not config.secretKey then
|
||||||
os.secretKey = math.random(100000, 999999)
|
config.secretKey = math.random(100000, 999999)
|
||||||
Config.update('os', config)
|
Config.update('os', config)
|
||||||
end
|
end
|
||||||
return os.secretKey
|
return config.secretKey
|
||||||
end
|
end
|
||||||
|
|
||||||
function os.updatePassword(password)
|
function os.updatePassword(password)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user