       showError err
       @loginForm.resetDecoration()
     else
-      {account, replacementToken} = params
-      $.cookie 'clientId', replacementToken  if replacementToken
+      {account} = params
       mainController = KD.getSingleton('mainController')
       mainView       = mainController.mainViewController.getView()
-      mainController.accountChanged account
       mainView.show()
       mainView.$().css "opacity", 1
 

        , 1000

  doLogin:(credentials)->
    (KD.getSingleton 'mainController').isLoggingIn on
    credentials.username = credentials.username.toLowerCase().trim()
    KD.remote.api.JUser.login credentials, @bound 'afterLoginCallback'

  runExternal = (token)->
    KD.getSingleton("kiteController").run
      kiteName        : "externals"

      cssClass : "login-form"
      testPath : "login-form"
      callback : (formData)=>
        @doLogin formData

    @registerForm = new RegisterInlineForm
