LUA script to query authentication database
Please give code example for users.lua with the LUA script to query authentication database.
I use postgresql and have a problem with authentica when push a stream to EMS.
I have config above but it don’t work.
Start your code hereluasql = require "luasql.postgres"
env = luasql.postgres()
conn = env:connect("calling", "postgres", "none", "172.17.0.2", "5432")
conn:execute([[select email, password from users]])
1 Answers
Hi hoangin,
EvoStream uses lua for its configuration files. However, writing code in the lua language is not an expertise of EvoStream. You may try asking questions in the lua community forums. This may be a good place to start:
http://lua-users.org/
Cheers,
Don