             user.changeEmail account, options, callback
             if account.status is 'registered'
               # don't send an email when guests change their emails, which we
-              # need to allow for the pricing workflow. 
+              # need to allow for the pricing workflow.
               sendChangeEmail user.email, "email"
 
   @emailAvailable = (email, callback)->


  @login = secure (client, credentials, callback)->
    {username, password} = credentials
    {sessionToken: clientId, connection} = client 

    constructor = this
    JSession.one {clientId}, (err, session)->

          queue.next()
      =>
        JPasswordRecovery = require '../passwordrecovery'

        passwordOptions =
          email         : user.email
          verb          : unless username? then 'Register2'

        JPasswordRecovery.create client, passwordOptions, (err)->
          queue.next()
      ->
