White Label Login
White Label Login provides a way for you to have an email/password login not tied to any of the big platforms.
This is great for more advanced use cases, like making it possible for your players to sign in on your website with the same account they're using in the game.
Before using the SDK you must first enable and configure the White Label Login in Platform Settings

Create a New User

Before we can register a session in the game, a user must first be created.
Unity
Unreal
1
// Remember to use the LootLocker namespace in the top of your file.
2
using LootLocker.Requests;
3
4
// This code should be placed in a handler when user clicks the sign up button.
5
string email = "[email protected]";
6
string password = "password here";
7
LootLockerSDKManager.WhiteLabelSignUp(email, password, (response) =>
8
{
9
if (!response.success)
10
{
11
Debug.Log("error while creating user");
12
13
return;
14
}
15
16
Debug.Log("user created successfully");
17
});
Copied!
White Label Login is not yet implemented in the Unreal SDK.
If you need this feature, please let us know on our Discord server.

Register a Session

After creating a user we can register a session. When the session has been registered you can use other LootLocker features in your game.
Unity
Unreal
1
// Remember to use the LootLocker namespace in the top of your file.
2
using LootLocker.Requests;
3
4
// This code should be placed in a handler when user clicks login button.
5
string email = "[email protected]";
6
string password = "password here";
7
LootLockerSDKManager.StartWhiteLabelSession(email, password, (response) =>
8
{
9
if (!response.success)
10
{
11
Debug.Log("error starting LootLocker session");
12
13
return;
14
}
15
16
Debug.Log("session started successfully");
17
});
Copied!
To learn more about sessions you can read our page on Understanding the Session Registration Response
White Label Login is not yet implemented in the Unreal SDK.
If you need this feature, please let us know on our Discord server.

Request Password Reset

If they user wants to reset their password we can use the following code to send them an email with a link to a reset password page.
The page is hosted on LootLocker and will use the settings in Platform Settings for name and logo.
Unity
Unreal
1
// Remember to use the LootLocker namespace in the top of your file.
2
using LootLocker.Requests;
3
4
// This code should be placed in a handler when user clicks reset password.
5
string email = "[email protected]";
6
LootLockerSDKManager.WhiteLabelRequestPassword(email, (response) =>
7
{
8
if (!response.success)
9
{
10
Debug.Log("error requesting password reset");
11
12
return;
13
}
14
15
Debug.Log("requested password reset successfully");
16
});
Copied!
White Label Login is not yet implemented in the Unreal SDK.
If you need this feature, please let us know on our Discord server.
Last modified 13d ago