Login and Registrations Documentation

Encrypted and Secure

All user details are encrypted and securely stored.

How to add logins and registrations to your app

Below is the easiest way to set up logins and registrations for your application

  • Register for your FREE account to create your unique user identifier..
  • Create a project to create your unique identifier

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 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

  • This will return a status of either "Success" or "Failed"
if (ds_map_find_value(async_load, "id") == sendAppLogin)
{
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); loginStatus = string(ds_map_find_value(userDetails, "status"));
global.userString = string(ds_map_find_value(userDetails, "userString"));
global.avatarImage = sprite_add(string(ds_map_find_value(userDetails, "avatarImage")),1,false,false,0,0);


if (loginStatus == "Success")
{
//room_goto(rm_memberhome); //If successful you can send user to their account page
}

if(loginStatus == "Failed")
{

}

}
}