본문으로 건너뛰기
버전: SDK-5.11.7

CustomLogin

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

파라미터

ValueTypeDescription
idstring아이디
passwordstring비밀번호
etcstring(Optional) 부가적으로 저장하고 싶은 정보

설명

커스텀 회원가입을 성공한 계정은 커스텀 로그인 기능을 이용하여 로그인을 수행할 수 있습니다.

Example

동기

BackendReturnObject bro = Backend.BMember.CustomLogin("id" , "password");
if(bro.IsSuccess())
{
Debug.Log("로그인에 성공했습니다");
}

비동기

Backend.BMember.CustomLogin("id", "password", (callback) => {
if (callback.IsSuccess()) {
Debug.Log("로그인에 성공했습니다");
}
});

SendQueue

SendQueue.Enqueue(Backend.BMember.CustomLogin, "id", "password", (callback) => {
if (callback.IsSuccess()) {
Debug.Log("로그인에 성공했습니다");
}
});

ReturnCase

Success cases

로그인에 성공한 경우
statusCode : 200
message : Success

Error cases

디바이스 정보가 null일 경우
statusCode : 400
errorCode : UndefinedParameterException
message : undefined device_unique_id, device_unique_id을(를) 확인할 수 없습니다

존재하지 않는 아이디의 경우
statusCode : 401
errorCode : BadUnauthorizedException
message : bad customId, 잘못된 customId 입니다

비밀번호가 틀린 경우
statusCode : 401
errorCode : BadUnauthorizedException
message : bad customPassword, 잘못된 customPassword 입니다

프로젝트 상태가 '점검'일 경우(접근 허용 유저 제외)
statusCode : 401
errorCode : BadUnauthorizedException
message : bad serverStatus: maintenance, 잘못된 serverStatus: maintenance 입니다

차단당한 유저인 경우
statusCode : 403
errorCode : 콘솔에서 입력한 차단된 사유
message : Forbidden blocked user, 금지된 blocked user

차단당한 디바이스일 경우
statusCode : 403
errorCode : ForbiddenException
message : Forbidden blocked device, 금지된 blocked device

탈퇴가 진행중일 경우(WithdrawAccount 함수 호출 이후)
statusCode : 410
errorCode : GoneResourceException
message : Gone user, 사라진 user 입니다