updateUser I can't change the propriety

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

Hi,

I don’t think you can change the user password in that method.

Also, what happens if you run this test script (you’ll need to add your registration data:

[lua]

local function test()

  coronium:registerUser({email=“email”, … }, function(e)

    if not e.error then

      coronium:loginUser(“email”, “password”, function(e)

        if not e.error then

          coronium:updateUser({chanel=“B”}, function(e)

            if not e.error then

              print(‘done’)

            end

          end)

        end

      end)

    end

  end)

end

test()

[/lua]

Let me know.

Cheers.

Hi,

This code is similar to my code. I tested your code but the program print “done” ( not generate error)  although not change the variable  chanel. I think that any think is not working.

Thank You.

Hi,

What version are you using, and where are you hosting?

Cheers.

Hi, I download the last version in your www, and it is “Coronium module for Corona SDK v1.92.5”, my host it is in (AMS3) Amsterdam

I reinstall dropped 7 days ago.

Manuel. Thanks you. 

Hi,

Thanks for the info.

Also, does your Coronium admin panel show “1.92.5?”

Cheers.

Yes. in my admin panel said 1.92.5 ( in the lower left corner of windows).

Hi,

Thanks. Going to look into it.

Cheers.

Hi Cheers. I see the problem when I want change a parameter I need user the objectId. :).

Coronium does not do error if you do not write the objectId but does not do the change.

local function test ()

  coronium:registerUser ({email=“email”, password = “1234”, action = “A”}, function (e)

    if not e.error then

      coronium:loginUser (“email”, “1234”, function (e)

        if not e.error then

          coronium:updateUser({objectId=e.result.objectId, action = “B”}, function (e)

            if not e.error then

              print (“change OK”)

            end

          end)

        end

      end)

    end

  end)

end

test ()

Thank you for your time.

Hi,

I don’t think you can change the user password in that method.

Also, what happens if you run this test script (you’ll need to add your registration data:

[lua]

local function test()

  coronium:registerUser({email=“email”, … }, function(e)

    if not e.error then

      coronium:loginUser(“email”, “password”, function(e)

        if not e.error then

          coronium:updateUser({chanel=“B”}, function(e)

            if not e.error then

              print(‘done’)

            end

          end)

        end

      end)

    end

  end)

end

test()

[/lua]

Let me know.

Cheers.

Hi,

This code is similar to my code. I tested your code but the program print “done” ( not generate error)  although not change the variable  chanel. I think that any think is not working.

Thank You.

Hi,

What version are you using, and where are you hosting?

Cheers.

Hi, I download the last version in your www, and it is “Coronium module for Corona SDK v1.92.5”, my host it is in (AMS3) Amsterdam

I reinstall dropped 7 days ago.

Manuel. Thanks you. 

Hi,

Thanks for the info.

Also, does your Coronium admin panel show “1.92.5?”

Cheers.

Yes. in my admin panel said 1.92.5 ( in the lower left corner of windows).

Hi,

Thanks. Going to look into it.

Cheers.

Hi Cheers. I see the problem when I want change a parameter I need user the objectId. :).

Coronium does not do error if you do not write the objectId but does not do the change.

local function test ()

  coronium:registerUser ({email=“email”, password = “1234”, action = “A”}, function (e)

    if not e.error then

      coronium:loginUser (“email”, “1234”, function (e)

        if not e.error then

          coronium:updateUser({objectId=e.result.objectId, action = “B”}, function (e)

            if not e.error then

              print (“change OK”)

            end

          end)

        end

      end)

    end

  end)

end

test ()

Thank you for your time.