     newToken         = null
     invitation       = null
     foreignAuthType  = null
+    subscription     = null
 
     queue = [
 

  JLog                 = require '../log'
  ComputeProvider      = require '../computeproviders/computeprovider'
  Tracker              = require '../tracker'

  @bannedUserList = ['abrt', 'amykhailov', 'apache', 'about', 'visa', 'shared-',
                     'cthorn', 'daemon', 'dbus', 'dyasar', 'ec2-user', 'http',

          queue.next()

      ->
        date = new Date 0
        subscription =
          accountId          : account.getId()
          planTitle          : 'free'
          planInterval       : 'month'
          state              : 'active'
          provider           : 'koding'
          expiredAt          : date
          canceledAt         : date
          currentPeriodStart : date
          currentPeriodEnd   : date

        queue.next()

      ->
        jwtToken = JUser.createJWT { username }

        { status, lastLoginDate } = user
        { createdAt } = account.meta

        sshKeysCount = user.sshKeys.length

        emailFrequency =
          global       : user.emailFrequency.global
          marketing    : user.emailFrequency.marketing

        traits = {
          email
          createdAt
          lastLoginDate
          status

          firstName
          lastName

          subscription
          sshKeysCount
          emailFrequency

          pin
          jwtToken
        }

        Tracker.identify username, traits

        queue.next()

      ->
