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.

user email verfication  #631

Description

when the user submits his data always get this error
Property name 'emailVerificationToken' is not defined in profile
I checked everything in docs and code and here is the code for my app
`app.use(stormpath.init(app, {

expand: {
  customData: true,
  groups: true,
  groupMemberships: true,
  providerData: true
},
web: {
verifyEmail: {
  enabled: true,
  nextUri: 'http://localhost:3001/login'
},
  login: {
    form: {
      fields: {
        login: {
          label: 'Email',
          placeholder: 'Email'
        },
        password: {
          label: "Password",
          placeholder: 'Password'
        }
      }
    }
  },
  register: {
    enabled: true,
    autoLogin: true,
    uri: '/signup',  // Use a different URL
    nextUri: '/',    // Where to send the user to, if auto login is enabled
    form: {
      fields: {
        surname: {enabled: false},
        givenName: {
          enabled: true,
          label: 'Username',
          placeholder: 'Username',
          required: true,
          type: 'text'
        },
      },
      fieldOrder: ['givenName', 'email', 'password']
    }
  }
},
preRegistrationHandler: function (formData, req, res, next) {
        console.log(formData)
        return next();
        }
      });
    });
},
postRegistrationHandler: function (account, req, res, next) {
    console.log("account")
  next();
},
apiToken: "",
org: '',
application : {
  id : ""
}

}));`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions