code: function createUser (req, res, next) {
      User.insert(req.body, { private: true }, function (err, user) {
        if (err) {
          res.render('signup', {
            params: qs.stringify(req.body),
            request: req.body,
            providers: settings.providers,
            error: err.message
          })
        } else {
          authenticator.dispatch('password', req, res, next, function (err, user, info) {
            if (err) { return next(err) }
            if (!user) {
            } else {
              authenticator.login(req, user)
              req.sendVerificationEmail =
                req.provider.emailVerification.enable
              req.flash('isNewUser', true)
              next()
            }
          })
        }
      })
    }
docs: Password signup handler