1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-18 06:08:06 +00:00

api cleanup

This commit is contained in:
kepler155c@gmail.com
2017-11-15 00:08:42 -05:00
parent f533e42c0c
commit a8a4ceb85d
7 changed files with 119 additions and 96 deletions

View File

@@ -9,6 +9,10 @@ function Security.verifyPassword(password)
return config.password and password == config.password
end
function Security.hasPassword()
return not not config.password
end
function Security.getSecretKey()
Config.load('os', config)
if not config.secretKey then