Skip to content
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

Open
mdeggies opened this issue Nov 22, 2016 · 1 comment
Open

Custom data not expanded with email verification on #549

mdeggies opened this issue Nov 22, 2016 · 1 comment

Comments

@mdeggies
Copy link
Member

mdeggies commented Nov 22, 2016

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.

@mdeggies
Copy link
Member Author

This was customer reported, so going to open.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants