       else
         @fetchUser client, (err,user)->
           account = client.connection.delegate
-          user.changeEmail account, email, callback
+          user.changeEmail account, options, callback
 
   @emailAvailable = (email, callback)->
     @count {email}, (err, count)->

      password: hashPassword(newPassword, salt)
    }, callback

  changeEmail:(account, email, callback)->

    @update $set: {email}, (err, res)->
      if err
        callback err
      else
        account.profile.hash = getHash email
        account.save (err)-> throw err if err
        callback null


  sendEmailConfirmation:(callback=->)->
    JEmailConfirmation.create @, (err, confirmation)->

  @changePassword = bongo.secure (client,password,callback)->
    @fetchUser client, (err,user)-> user.changePassword password, callback

  @changeEmail = bongo.secure (client, options, callback)->

    {email} = options

    @emailAvailable email, (err, res)=>

      if err
