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 whether you accept or reject these cookies being set.

Create user by code
#6
If you want to edit an existing user then you need to pass user ID in data table:
Code:
data = {
  id = 123,
  name = 'test',
  ...

You can get user IDs via a script:
Code:
users = db:getall('SELECT id, login FROM users')
log(users)
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

Forum Jump: