Request User Verification

If you want your White Label users to verify the provided emails then you can use the following example to do so. To use this however you need to have enabled account verification in the Platform Settings.

// Remember to use the LootLocker namespace in the top of your file.
using LootLocker.Requests;

// This code should be placed in a handler when the user verifies their email.
int userId = 1234;
LootLockerSDKManager.WhiteLabelRequestVerification(userId, (response) =>
{
    if (!response.success)
    {
        Debug.Log("error requesting account verification");

        return;
    }

    Debug.Log("account verification requested successfully");
});

Last updated