Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Custom data not expanded with email verification on #549

@mdeggies

Description

@mdeggies

Steps to reproduce:

  1. Make sure email verification is turned off for your directory, and add this init to server.js:
app.use(stormpath.init(app, {
    application: {
        href: 'https://api.stormpath.com/v1/applications/$APP_ID'
    },
    expand: {
        customData: true
    },
    postRegistrationHandler: function (account, req, res, next) {
        console.log('account:', account);
        next();
    },
    web: {
        register: {
            form: {
                fields: {
                    random: {
                        enabled: true,
                        label: 'Random',
                        name: 'random',
                        required: true,
                        type: 'text'
                    }
                }
            }
        }
    }
}));
  1. Create a new user and see that custom data is expanded & visible in the console.

  2. Turn email verification on for the directory and then restart the server. Create a new user and see that custom data is not expanded or visible in the console.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions