/// @description bl_forgotpassword(username)
function bl_forgotpassword(username) {
with obj_backendless{
// Headers
var headers = ds_map_create();
headers[? "userHeaders"] = string(username);
// Request
bl_action = bl_actions.forgotpassword; // For networking event
bl_request = http_request(bl_users+"restorepassword/"+string(username),"GET",headers,"");
// Clearup
ds_map_destroy(headers);
ds_map_destroy(body);
return bl_request;
}
}
Part 2: OBJ_ACCOUNT_FORGOT_BTN - LEFT MOUSE RELEASE EVENT:
if NET_wait_TCP == true or instance_exists(o_9slice_par) {exit;}//BAIL OUT
pressed = 0;
//with gmkboc_acc_emailbox { other._prepped_email = value;}
with gmkboc_acc_usernamebox { other._prepped_username = value;}
//if not empty values... send register command.
if _prepped_username != "" {
bl_forgotpassword(_prepped_username);
//emit_forgot_password(_prepped_username); //OLD
start_NET_wait_TCP(700);
//reset
_pw = ""
_prepped_username = ""
}
AND part 3: (TOP OF obj_backendless ASYNC HTTP EVENT)…(Where it ends.)
// If there was an error
if (ds_map_exists(json,"code")) {
// Error message
var code = json[? "code"];
var msg = json[? "message"];
// Show message or something
show_scaler_message("<col @c_red>"+string(msg), "OK");
// Abort
finish_NET_wait_TCP()
exit;
}
This is a very strange problem. I tried the same API request in my test app and it worked just fine, but I was able to reproduce the problem in your app. I opened a ticket for the dev team to investigate the problem: BKNDLSS-27583
I have some news about the problem you had. We have updated the cloud servers to fix the problem you described. We are sorry that it took so long to fix the problem. Passwordless login now does not take into account the visibility permission for the email column.