Skip to main content
Version: 5.9.6

ConfirmCustomPassword

public BackendReturnObject ConfirmCustomPassword(string CustomGamerPassword);

Parameter

ValueTypeDescription
CustomGamerPasswordstringCustom password

Description

You can confirm whether the custom password of the user with the accessToken is valid.
It can be used to reconfirm a password before modifying a user's information for security reasons.

Example

Synchronous

BackendReturnObject bro = Backend.BMember.ConfirmCustomPassword("1234");
if(bro.IsSuccess())
{
Debug.Log("The password matches.");
}

Asynchronous

Backend.BMember.ConfirmCustomPassword("1234", (callback) =>
{
if(callback.IsSuccess())
{
Debug.Log("The password matches.");
}
});

SendQueue

SendQueue.Enqueue(Backend.BMember.ConfirmCustomPassword, "1234", (callback) =>
{
if(callback.IsSuccess())
{
Debug.Log("The password matches.");
}
});

Return cases

Success cases

When the password matches
statusCode : 200

Error cases

When the wrong password is entered
statusCode : 400
errorCode : BadParameterException


ResetPassword

public BackendReturnObject ResetPassword(string CustomGamerId, string EmailAddress);

Parameters

ValueTypeDescription
CustomGamerIdstringCustomId for password initialization
EmailAddressstringEmail address that will receive the initialized password initialized earlier

Description

When the custom ID and the information about the registered email are entered, the initialized password is sent to the relevant email.

When the user has a country code and an event of that country is registered in the console → Email containing the title and content for that country will be sent.
If the user's country code is not present, or if an event is not registered for the country in the console → The default title and content are sent.

Password initialization should not be used for guest login accounts.
When the password of a guest login account is initialized, the user cannot perform the guest login properly.

Example

Synchronous

Backend.BMember.ResetPassword("CustomGamerId" , "help@thebackend.io");

Asynchronous

Backend.BMember.ResetPassword("CustomGamerId" , "help@thebackend.io", (callback) =>
{
// Post-process
});

SendQueue

SendQueue.Enqueue(Backend.BMember.ResetPassword, "CustomGamerId" , "help@thebackend.io", (callback) =>
{
// Post-process
});

Return cases

Success cases

When the password initialization email is sent successfully
statusCode : 204

Error cases

When the wrong email is entered
statusCode : 400
errorCode : BadParameterException

When the wrong CustomId is entered
statusCode : 404
errorCode : NotFoundException

When there is no enrolled email
statusCode : 404
errorCode : NotFoundException

When the password initialization is tried more than 5 times using the same email information within 24 hours
statusCode : 429
errorCode : Too Many Request

When special characters have been added to the project name (Password is initialized, but the notification email is not sent, and an error occurs)
statusCode : 400
errorCode : InvalidParameterValue


UpdatePassword

public BackendReturnObject UpdatePassword(string OldPassword, string NewPassword);

Parameters

ValueTypeDescription
OldPaswordstringCurrent password
NewPasswordstringNew password

Description

You can change the password of the current account.

The password of the guest login account should not be updated.
When the password of a guest login account is updated, the user cannot perform the guest login properly.

Example

Synchronous

Backend.BMember.UpdatePassword("OldPassword", "NewPassword");

Asynchronous

Backend.BMember.UpdatePassword("OldPassword", "NewPassword", (callback) =>
{
// Post-process
});

SendQueue

SendQueue.Enqueue(Backend.BMember.UpdatePassword, "OldPassword", "NewPassword", (callback) =>
{
// Post-process
});

Return cases

Success cases

When the update is successful
statusCode : 204

Error cases

When the wrong OldPassword is entered
statusCode : 400
errorCode : BadParameterException