Yesterday, 10:21
Hi all,
I add a user to the database like this :
The user is added, but when I'm try to connect, I get a 403 error !
any idea ?
thanks
I add a user to the database like this :
Code:
local user = {
name = db:escape(name),
login = db:escape(login),
password = hashpassword(db:escape(login), "123456"),
homepage = "apps-fcs",
access_apps = "P",
access_vis = '',
access_mosaic = "F",
access_schedulers = '',
access_trends = '',
allow_objects = "",
active = 1
}
result, err = db:insert('users', user)
io.readproc('/etc/init.d/nginx reload')
The user is added, but when I'm try to connect, I get a 403 error !
any idea ?
thanks