Social Player Portal #

The Social Player Portal has two provided pages:

Each of these pages can be accessed by selecting the respective tab on the left navigation bar.

Account Settings #

The Account Settings page provides players with basic Pragma Account information. Players can view and edit information such as their display name and email.

Manage display name #

Players can update their display name under the Account Information section. When a player requests for a name change, AccountPlugin.updateDisplayName is called.

The default Account Plugin does not allow players to update their display name. To allow players to edit their display name, you’ll need to update your Account Plugin. For more information, see Update a player’s display name.

Once you have set up the Account Plugin you can allow players to edit their display name by enabling the display name edit swappable component. For more information, see Swappable Components.

export default {
    portletUpdates: {},
    swappableComponents: {'Player.Account.Settings.DisplayName': DisplayNameEdit},
    navbarComponents: [],
    featureToggles: []
}

Manage email #

Players can add and update their email under the Account Information section. When a player makes an update to the email address field, updateEmailV1 is called. The player will then be sent an email containing a verification link. For more information on how to set up email verification, see the Email Verification page.

Once you have set up email verification you can allow players to edit their email by enabling the email edit swappable component. For more information, see Swappable Components.

export default {
    portletUpdates: {},
    swappableComponents: {'Player.Account.Settings.Email': EmailEdit},
    navbarComponents: [],
    featureToggles: []
}

Linked Accounts #

To allow players to link other identity provider accounts, on each desired identity provider set accountLinkingEnabled config to true. The Linked Accounts page is hidden by default; if at least a single identity provider has account linking enabled in the config, the Linked Accounts page will appear in the Social Player Portal. All identity providers with linking enabled will appear in the list.

To unlink an account, players will need to click on the message: “Contact player support to unlink”. To display a customer support link in the unlinking message, set a key and value under the content config section in the Portal.

SocialPlayerGatewayNodeService.routePlugins:
  plugins:
    Portal:
      class: "pragma.gateway.FilePortalModulePlugin"
      config:
        portalSource: "5-ext/portal/dist/player-social"
        content:
          "customerSupportLink": "http://your-company.com/support"

For more information on account linking, see the Identity Providers page.