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.
This requires you to have enabled Account Verification in 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");
});This requires that you have set up the Unreal SDK in your game.
This requires you to have enabled Account Verification in Platform Settings.
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.
Input
You need to exchange the TriggerWhiteLabelUserVerificationevent 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.
This requires you to have enabled Account Verification in Platform Settings.
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
passcurl -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.
Last updated
