This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Create user by code
#12
Upload attached files to user directory using apps FTP account. Then open http://LM_IP/user/pass.lp to change password. You can also include this page via iframe.

As for changing partial user access rights you have pass array of IDs (plans, trends, schedulers):
Code:
acl = {
  vis = { 1, 2, 3 },
  schedulers = { 4, 5, 6 },
  trends = {},
}


data = {
  id = 123,
  name = 'test',
  acl = json.encode(acl)
  ...

Attached Files
.lp   pass.lp (Size: 1.56 KB / Downloads: 16)
.lua   pass.lua (Size: 996 bytes / Downloads: 20)
Reply


Messages In This Thread
Create user by code - by gdoro - 03.04.2019, 13:13
RE: Create user by code - by admin - 03.04.2019, 13:35
RE: Create user by code - by gdoro - 03.04.2019, 15:51
RE: Create user by code - by admin - 04.04.2019, 07:21
RE: Create user by code - by Carlos Padilla - 15.05.2019, 16:27
RE: Create user by code - by admin - 16.05.2019, 05:55
RE: Create user by code - by Carlos Padilla - 16.05.2019, 21:35
RE: Create user by code - by Carlos Padilla - 20.05.2019, 16:42
RE: Create user by code - by admin - 21.05.2019, 06:22
RE: Create user by code - by Carlos Padilla - 22.05.2019, 16:32
RE: Create user by code - by admin - 28.05.2019, 12:00
RE: Create user by code - by Carlos Padilla - 30.05.2019, 20:55
RE: Create user by code - by Carlos Padilla - 26.08.2022, 22:39
RE: Create user by code - by admin - 29.08.2022, 06:31
RE: Create user by code - by Carlos Padilla - 29.08.2022, 17:20

Forum Jump: