Register (Register)
Register and log in to the account.
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
Please note the rules for username and password.
| Parameters | Type | Explanation |
|---|---|---|
| Account | FString | Account, can register using email and phone number. |
| Password | FString | For more details, see Password Rules. |
| VerifyCode | FString | Verification code |
| PhoneAreaCode | FString | Phone area code, e.g., "86" for China.If using an email address to register an account, the field is empty. |
| UserProfile | FINTLAccountProfile | Account personal information, including username, birthday, country, etc. |
Observers
The callback processing interface is AuthResultObserver.The callback data structure is AuthResult.
Callback ID is kMethodIDAuthRegister.
Code sample
UINTLSDKAPI::Register("youremail@sample.com", "yourpassword", "12345", "", "yourusername", 1980, 1, 1, 0);