Skip to main content
Version: 6.0.0

ConfirmPassword

public BackndReturnObject ConfirmPassword(string CustomGamerPassword);

Parameters

ValueTypeDescription
CustomGamerPasswordstringCustom password

Description

Confirms whether the custom password of the user with the accessToken is valid.
Used to reconfirm password before modifying a user’s information for security reasons.

Example

Synchronous

BackndReturnObject bro = Backnd.Player.ConfirmPassword("1234");
if(bro.IsSuccess())
{
Debug.Log("The password matches.");
}

Asynchronous

Backnd.Player.ConfirmPassword("1234", (callback) =>
{
if(callback.IsSuccess())
{
Debug.Log("The password matches.");
}
});

ReturnCase

Success cases

When the password is valid
statusCode : 200

Error cases

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


SendResetPasswordByEmailEmail

public BackndReturnObject SendResetPasswordByEmailEmail(string CustomGamerId, string EmailAddress);

Parameters

ValueTypeDescription
CustomGamerIdstringCustomId for resetting password
EmailAddressstringEmail address registered in advance that will receive the reset password

Description

When the custom ID and the information about the registered email are entered, the password that has been reset is sent to the relevant email.

  • If a user's country information is registered, the password reset template for that country is sent.
  • If a user's country information does not exist, the default password reset template is sent.
The password of the guest login account should not be reset.

When the password of a guest login account is reset, the user cannot perform the guest login properly.

Example

Synchronous

Backnd.Player.SendResetPasswordByEmailEmail("CustomGamerId" , "help@thebackend.io");

Asynchronous

Backnd.Player.SendResetPasswordByEmailEmail("CustomGamerId" , "help@thebackend.io", (callback) =>
{
// Post-process
});

ReturnCase

Success cases

When the password reset 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 email registered
statusCode : 404
errorCode : NotFoundException

When the password reset 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 reset, but the notification email is not sent, and an error occurs)
statusCode : 400
errorCode : InvalidParameterValue


ChangePassword

public BackndReturnObject ChangePassword(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

Backnd.Player.ChangePassword("OldPassword", "NewPassword");

Asynchronous

Backnd.Player.ChangePassword("OldPassword", "NewPassword", (callback) =>
{
// Post-process
});

ReturnCase

Success cases

When the update succeeds
statusCode : 204

Error cases

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