ConfirmCustomPassword
public BackendReturnObject ConfirmCustomPassword(string CustomGamerPassword);
Parameters
Value | Type | Description |
---|---|---|
CustomGamerPassword | string | Custom 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
BackendReturnObject bro = Backend.MultiCharacter.Account.ConfirmCustomPassword("1234");
if(bro.IsSuccess())
{
Debug.Log("The password matches.");
}
Asynchronous
Backend.MultiCharacter.Account.ConfirmCustomPassword("1234", (callback) =>
{
if(callback.IsSuccess())
{
Debug.Log("The password matches.");
}
});
SendQueue
SendQueue.Enqueue(Backend.MultiCharacter.Account.ConfirmCustomPassword, "1234", (callback) =>
{
if(callback.IsSuccess())
{
Debug.Log("The password matches.");
}
});
ReturnCase
Success cases
When the password matches\ statusCode : 200\ message : Success
Error cases
When an invalid password is entered\ statusCode : 400\ errorCode : BadParameterException\ message : bad password, Invalid password.
ResetPassword
public BackendReturnObject ResetPassword(string CustomGamerId, string EmailAddress);
Parameters
Value | Type | Description |
---|---|---|
CustomGamerId | string | CustomId for resetting password |
EmailAddress | string | Email address registered in advance that will receive the reset password |
Description
When the multicharacter account's 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.
When the password of a guest login account is reset, the user cannot perform the guest login properly.\
Example
Synchronous
Backend.MultiCharacter.Account.ResetPassword("CustomGamerId" , "help@backnd.com");
Asynchronous
Backend.MultiCharacter.Account.ResetPassword("CustomGamerId" , "help@backnd.com", (callback) =>
{
// Post-process
});
SendQueue
SendQueue.Enqueue(Backend.MultiCharacter.Account.ResetPassword, "CustomGamerId" , "help@backnd.com", (callback) =>
{
// Post-process
});
ReturnCase
Success cases
When the password reset email is sent successfully\ statusCode : 204\ message : Success
Error cases
When an invalid email is entered\ statusCode : 400\ errorCode : BadParameterException\ message : bad email is not match, Email does not match
When an invalid CustomId is entered\ statusCode : 404\ errorCode : NotFoundException\ message : gamer not found, gamer cannot be found
When there is no email registered\ statusCode : 404\ errorCode : NotFoundException\ message : enrolled email not found, enrolled email cannot be found
When the password reset is tried more than 5 times using the same email information within 24 hours\ statusCode : 429\ errorCode : Too Many Request\ message : To protect your information, Find ID/Initialize Password is available only 5 times a day. Please try again tomorrow. Exceeded the request count.
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\ message : User name is missing: Unique value no-reply@thebackend.io;
UpdatePassword
public BackendReturnObject UpdatePassword(string OldPassword, string NewPassword);
Parameters
Value | Type | Description |
---|---|---|
OldPasword | string | Current password |
NewPassword | string | New password |
Description
You can change the password of the current account.
When the password of a guest login account is updated, the user cannot perform the guest login properly.\
Example
Synchronous
Backend.MultiCharacter.Account.UpdatePassword("OldPassword", "NewPassword");
Asynchronous
Backend.MultiCharacter.Account.UpdatePassword("OldPassword", "NewPassword", (callback) =>
{
// Post-process
});
SendQueue
SendQueue.Enqueue(Backend.MultiCharacter.Account.UpdatePassword, "OldPassword", "NewPassword", (callback) =>
{
// Post-process
});
ReturnCase
Success cases
When the update succeeds\ statusCode : 204\ message : Success
Error cases
When an invalid OldPasword is entered\ statusCode : 400\ errorCode : BadParameterException\ message : bad password is not match, Password does not match