Skip to main content
Version: 5.11.8

CustomLogin

public BackendReturnObject CustomLogin(string id, string password);
public BackendReturnObject CustomLogin(string id, string password, string etc);

Parameter

ValueTypeDescription
idstringID
passwordstringPassword
etcstring(Optional) Information you wish to save in addition

Description

The account that has successfully undergone custom sign-up may log in by using the custom login function.

Example

Synchronous

BackendReturnObject bro = Backend.BMember.CustomLogin("id" , "password");
if(bro.IsSuccess())
{
Debug.Log("Login successful");
}

Asynchronous

Backend.BMember.CustomLogin("id", "password", callback => {
if(callback.IsSuccess())
{
Debug.Log("Login successful");
}
});

SendQueue

SendQueue.Enqueue(Backend.BMember.CustomLogin, "id", "password", callback => {
if(callback.IsSuccess())
{
Debug.Log("Login successful");
}
});

Return cases

Success cases

When the login is successful
statusCode : 200

Error cases

When the device information is 'null'
statusCode : 400
errorCode : UndefinedParameterException

When the ID does not exist
statusCode : 401
errorCode : BadUnauthorizedException

When the password is incorrect
statusCode : 401
errorCode : BadUnauthorizedException

When the project status is 'Maintenance'(whitelisted users excluded)
statusCode : 401
errorCode : BadUnauthorizedException

When the user is blocked
statusCode : 403
errorCode : Reason for blocking entered in the console

When the device is blocked
statusCode : 403
errorCode : ForbiddenException

When withdrawal is in progress(after calling the WithdrawAccount method)
statusCode : 410
errorCode : GoneResourceException