First excuse me for my continuous asks. But my mind does not undertand this.
I create a user and i want change a chanel propiety when he is login for first.
The code is this, but chanel is A in the end.
local function register ()
coronium:registerUser ({
email = “test@test”,
name = “user”,
chanel = “A”,
password = “1234”
},
function (e)
if not e.error then
print (“OK”)
print (e.result)
end
end)
end
local function change ()
coronium:loginUser( “test@test”, “1234”,
function (e)
if not e.error then
coronium:updateUser ({password = “1234”, chanel = “B”}, function (e) print (e.error) end)
end
end)
end
register()
timer.performWithDelay (1000, change, 1)
Thank you