express-stormpath
express-stormpath copied to clipboard
Custom data not expanded with email verification on
Steps to reproduce:
- 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'
}
}
}
}
}
}));
-
Create a new user and see that custom data is expanded & visible in the console.
-
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.
This was customer reported, so going to open.