I am trying to add the city param when I am registering a new user
regParams.city = "some city"
But when I register and view the user profile in the console “city” is null.
IN the cloud.lua file I looked at the registerUser function
function cloudCore.registerUser( params ) local pathParams = "auth\_token=" .. cloudCore.authToken if params.displayName ~= nil then pathParams = pathParams .. "&username=" .. params.displayName end if params.firstName ~= nil then pathParams = pathParams .. "&first\_name=" .. params.firstName end if params.lastName ~= nil then pathParams = pathParams .. "&last\_name=" .. params.lastName end if params.email ~= nil then pathParams = pathParams .. "&email=" .. \_urlencode( params.email ) end if params.password ~= nil then pathParams = pathParams .. "&password=" .. params.password end
I thought I could just add in this line of code to make it work
if params.city ~= nil then pathParam = pathParams .. "&city=" ..params.city end
But it is still set to null, anyone know how to set this field?
Thanks,
Gooner87