Skip to main content
Version: SDK-5.11.4

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
message : Success

Error cases

When the device information is 'null'
statusCode : 400
errorCode : UndefinedParameterException
message : undefined device_unique_id, device_unique_id cannot be checked

When the ID does not exist
statusCode : 401
errorCode : BadUnauthorizedException
message : bad customId, Invalid customId

When the password is incorrect
statusCode : 401
errorCode : BadUnauthorizedException
message : bad customPassword, Invalid customPassword

When the project status is 'Maintenance'(whitelisted users excluded)
statusCode : 401
errorCode : BadUnauthorizedException
message : bad serverStatus: maintenance, Invalid serverStatus: maintenance

When the user is blocked
statusCode : 403
errorCode : Reason for blocking entered in the console
message : forbidden blocked user, Blocked user

When the device is blocked
statusCode : 403
errorCode : ForbiddenException
message : Forbidden blocked device, Blocked device

When withdrawal is in progress(after calling the WithdrawAccount method)
statusCode : 410
errorCode : GoneResourceException
message : Gone user, This user does not exist