SSOwat/init.lua

17 lines
288 B
Lua
Raw Normal View History

2013-10-15 10:11:39 +02:00
-- Load libraries
2013-10-15 13:58:16 +02:00
json = require "json"
2013-10-15 10:11:39 +02:00
lualdap = require "lualdap"
math = require "math"
-- Set random key
math.randomseed(os.time())
auth_key = math.random(1111111, 9999999)
2013-10-15 13:58:16 +02:00
-- Shared table
2013-10-15 10:11:39 +02:00
tokens = {}
2013-10-16 11:27:18 +02:00
cache = {}
connections = {}
-- Path of the configuration
conf_path = 'conf.json'