GMDB
dashboard
user content
leaderboards
Avatar
documentation
SUPPORT
helpful links
WELCOME BACK
Documentation - Log Ins
setp up
You will need to create a New Project to create a Unique Identifier for your Registration and Log Ins.

Green Text - variables that are case sensitive that must be sent.
Red Text - Your variables that hold the required values
sending your registration data

var appRegistration = "appUsername=" + string(global.register_username) + "&appPassword=" + string(global.register_password) + "&appID=" + string(global.app_id);

sendAppRegistration = http_post_string("https://www.gmdb.co.uk/data/creater-app-account.php", appRegistration);

ASYNC result for registration
This will return a status value of either 'Successful' or 'Failed'

if (ds_map_find_value(async_load, "id") == sendAppRegistration)
  {
   if (ds_map_find_value(async_load, "status") == 0)
    {

        getResult = ds_map_find_value(async_load, "result");
        getResultDecoded = json_decode(getResult);

        var getAllData = ds_map_find_value(getResultDecoded, "default");

        userDetails = ds_list_find_value(getAllData, 0);

        registerStatus = string(ds_map_find_value(userDetails, "status"));
    }
  }

sending your login data

appLogin = "appUsername=" + string(global.login_username) + "&appPassword=" + string(global.login_password) + "&appID=" + string(global.app_id);

sendAppLogin = http_post_string("https://www.gmdb.co.uk/data/login-app-account.php", appLogin);

ASYNC result for login

async will return a status of "Success" or "Failed".
A good login will return user details that you can then use to populate your app,