       =>
         if aNewRegister
 
-          userInfo = { username, firstName, lastName, email, password }
+          userInfo = { username, firstName, lastName,
+            email, password, emailFrequency }
 
           @createUser userInfo, (err, _user, _account)=>
             return callback err  if err

jraphical = require 'jraphical'
Regions   = require 'koding-regions'
{argv}    = require 'optimist'
KONFIG    = require('koding-config-manager').load("main.#{argv.c}")
Flaggable = require '../../traits/flaggable'

KodingError = require '../../error'

module.exports = class JUser extends jraphical.Module
  {secure, signature, daisy, dash} = require 'bongo'

  JAccount        = require '../account'
  JSession        = require '../session'
  JInvitation     = require '../invitation'
  JName           = require '../name'
  JGroup          = require '../group'
  JLog            = require '../log'
  JPaymentPlan    = require '../payment/plan'
  JPaymentSubscription = require '../payment/subscription'
  ComputeProvider = require '../computeproviders/computeprovider'
  Email           = require '../email'

  { v4: createId } = require 'node-uuid'

  {Relationship} = jraphical

  createKodingError =(err)->
    if 'string' is typeof err

        salt
        password         : hashPassword password, salt
        passwordStatus   : passwordStatus or 'valid'
        emailFrequency   : emailFrequency
      }

      user.foreignAuth = foreignAuth  if foreignAuth
