This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Description
Have enabled Verification Email in the Stormpath web interface.
But we have two paths for registering, one path where we want email verification and one path where we don't.
When using application.createAccount we are passing in the object:
{
username: 'some username',
password: 'some password',
email: 'someemail@gmail.com',
givenName: 'some given name',
surname: 'some surname',
status: 'ENABLED'
}
And then the account status in Stormpath is "UNVERIFIED" and we can't automatically log the user in on registration