Register
This API is used to register and log in to accounts.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool Register(
const FString Account,
const FString Password,
const FString VerifyCode,
const FString PhoneAreaCode,
FINTLAccountProfile userProfile);
Input parameters
note
Take note about the username and password rule.
| Parameter | Type | Description |
|---|---|---|
| Account | FString | Account, which can be registered with an email address or phone number. |
| Password | FString | Password. For more information, see Password Rules. |
| VerifyCode | FString | Verification code |
| PhoneAreaCode | FString | Phone area code, such as "86" for China. If you register an account with an email address, the field is left empty. |
| UserProfile | FINTLAccountProfile | Personal information, such as user name, birthday and more. |
Observers
The callback processing interface is AuthResultObserver. The callback data structure is AuthResult.
The callback methodID is kMethodIDAuthRegister.
Code sample
UINTLSDKAPI::Register("youremail@sample.com", "yourpassword", "12345", "", "yourusername", 1980, 1, 1, 0);