Skip to content

feat: Add support for WLL custom sign up fields - #481

Merged
kirre-bylund merged 2 commits into
devfrom
task/add-wll-custom-signup-fields
Jul 17, 2026
Merged

feat: Add support for WLL custom sign up fields#481
kirre-bylund merged 2 commits into
devfrom
task/add-wll-custom-signup-fields

Conversation

@kirre-bylund

Copy link
Copy Markdown
Contributor

Tracking issue

https://github.com/lootlocker/index/issues/1630

Description

Add support for the new sign up form endpoint + support newly implemented input of form answers to the sign up endpoint.

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Docs
  • Chore

Testing notes

Automated tests have been added for what is testable, but there's currently no way to set up custom sign up fields from CI so we can not test the feature fully in CI.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds White Label Login (WLL) support for retrieving configured custom sign-up fields and submitting answers to those fields when signing up, exposing the functionality through the public LootLockerSDKManager facade and covering key serialization behavior with tests.

Changes:

  • Added a new WLL endpoint (white-label-login/sign-up/fields) and request method to fetch sign-up field definitions.
  • Extended the WLL sign-up request model and added a new LootLockerSDKManager.WhiteLabelSignUp overload to send custom_fields.
  • Added PlayMode coverage for the new endpoint plus serialization-focused tests for the new DTOs.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
Tests/LootLockerTests/PlayMode/WhiteLabelSignUpFieldsTest.cs Adds PlayMode + serialization tests for WLL sign-up fields and custom_fields request bodies.
Runtime/Game/Requests/WhiteLabelRequest.cs Introduces DTOs for custom fields + adds WhiteLabelGetSignUpFields request implementation.
Runtime/Game/LootLockerSDKManager.cs Exposes new public API overload for sign-up with custom fields and a new method to fetch sign-up fields.
Runtime/Client/LootLockerEndPoints.cs Adds the new WLL sign-up fields endpoint definition.

Comment thread Tests/LootLockerTests/PlayMode/WhiteLabelSignUpFieldsTest.cs Outdated
Comment thread Tests/LootLockerTests/PlayMode/WhiteLabelSignUpFieldsTest.cs Outdated
Comment thread Tests/LootLockerTests/PlayMode/WhiteLabelSignUpFieldsTest.cs Outdated
- Removed custom_fields from LootLockerWhiteLabelUserRequest so login
  requests no longer serialize an unexpected custom_fields field
- Created LootLockerWhiteLabelSignUpRequest inheriting from the base
  user request and carrying custom_fields
- Updated both WhiteLabelSignUp overloads to use the signup-specific
  request type
- Fixed @params JSON escaping assertion to match escaped inner quotes
- Removed Debug.Log line that printed the full sign-up request
  (including password) to CI logs
- Fixed assert message wording to describe failure instead of success

Addresses review comments on PR #481
@kirre-bylund
kirre-bylund merged commit 03f5eb2 into dev Jul 17, 2026
32 of 38 checks passed
@kirre-bylund
kirre-bylund deleted the task/add-wll-custom-signup-fields branch July 17, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants