# 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](https://console.lootlocker.com/settings/platforms/white_label_login).

{% tabs %}
{% tab title="Unity" %}
{% hint style="warning" %}
This requires you to have enabled Account Verification in [Platform Settings](https://console.lootlocker.com/settings/platforms/white_label_login).
{% endhint %}

```csharp
// 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");
});
```

{% endtab %}

{% tab title="Unreal" %}
{% hint style="warning" %}
This requires that you have [set up the Unreal SDK in your game.](https://docs.lootlocker.com/the-basics/unreal-quick-start)
{% endhint %}

{% hint style="warning" %}
This requires you to have enabled Account Verification in [Platform Settings](https://console.lootlocker.com/settings/platforms/white_label_login).
{% endhint %}

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-0cff1a2b97d10abe82e59df6d8dc2e1a97365b2c%2FWhiteLabelRequestUserVerification.png?alt=media" alt="Shows an example of how to implement account verification for a White Label user in Unreal Blueprints - see link: https://blueprintue.com/blueprint/mhgc3j5y/"><figcaption><p><a href="https://blueprintue.com/blueprint/mhgc3j5y/">Blueprint example of account verification for a White Label User</a></p></figcaption></figure>

Above is an example of how to implement account verification for a White Label user using blueprints in Unreal Engine. For an example you can copy and paste into your editor, [look here](https://blueprintue.com/blueprint/mhgc3j5y/).

**Input**

You need to exchange the `TriggerWhiteLabelUserVerification`event for whatever event you want to use to trigger the login flow.

You also need to replace the node `REPLACE: Input` with the users id.

**Output**

We recommend branching the completed events on the success flag, and if you do this you will probably want to add error handling in case the request fails as well as what (if any) continued actions you want on success.
{% endtab %}

{% tab title="Godot" %}
{% hint style="warning" %}
This requires you to have enabled Account Verification in [Platform Settings](https://console.lootlocker.com/settings/platforms/white_label_login).
{% endhint %}

```gdscript

var response = await LL_WhiteLabel.RequestVerification.new("an-email").send()
if(!response.success) :
    # Request failed, handle errors
    pass
else:
    # Request succeeded, use response as applicable in your game logic
    pass
```

{% endtab %}

{% tab title="REST" %}

```bash
curl -X POST "https://api.lootlocker.io/white-label-login/request-verification" \
  -H "domain-key: 11aaa11" \
  -H "is-development: true" \
  -H "Content-Type: application/json" \
  -d "{\"user_id\": 406}"
```

This will return a 204 without a body response.
{% endtab %}
{% endtabs %}
