         callback err
       else
         callback null, body
-  
+
   @setDefaultHash =->
     JUser.all {}, (err, users)->
       users.forEach (user)->
         user.fetchOwnAccount (err, account)->
           account.profile.hash = getHash user.email
           account.save (err)-> throw err if err
-  
-  @whoami = bongo.secure ({connection:{delegate}}, callback)-> callback delegate 
-  
+
+  @whoami = bongo.secure ({connection:{delegate}}, callback)-> callback delegate
+
   @login = bongo.secure ({connection}, credentials, callback)->
     {username, password} = credentials
     constructor = @

          status: $in : ['active','sent']
        }, (err, invite)->
          # callback null, yes, invite
          if err or !invite? 
            callback new KodingError 'Invalid invitation ID!'
          else 
            callback null, yes, invite
      else
        callback new KodingError 'Invitation code is required!'
  
  @verifyKodingenPassword = ({username, password, kodingenUser}, callback)->
    if kodingenUser isnt 'on'
      callback null

                              console.log err
                            else
                              console.log 'user link was added'

  @logout = bongo.secure ({connection}, callback)->
    connection.remote.fetchClientId (clientId)->
      visitor = JVisitor.visitors[clientId]
