         KD.mixpanel "Recover password submit, click"
         @doRecover formData
 
-    @resendForm= new ResendEmailConfirmationLinkInlineForm
+    @resendForm = new ResendEmailConfirmationLinkInlineForm
       cssClass : "login-form"
       callback : (formData)=>
         @resendEmailConfirmationToken formData


  animateToForm: (name)->

    switch name
      when "register"

        KD.remote.api.JUser.isRegistrationEnabled (status)=>
          if status is no
            log "Registrations are disabled!!!"
            @setFailureNotice
              cssClass  : "registrations-disabled"
              title     : "REGISTRATIONS ARE CURRENTLY DISABLED"
              message   : "We're sorry for that, please follow us on <a href='http://twitter.com/koding' target='_blank'>twitter</a>
                if you want to be notified when registrations are enabled again."
            @github.hide()
            @$(".login-footer").addClass 'hidden'
            @animateToForm "failureNotice"
          else
            @github.show()
            @$(".login-footer").removeClass 'hidden'

        KD.mixpanel "Register form, click"

      when "home"
        parent.notification?.destroy()
        if @headBannerMsg?
          @headBanner.updatePartial @headBannerMsg
          @headBanner.show()

    @unsetClass 'register recover login reset home resendEmail finishRegistration'
    @emit "LoginViewAnimated", name
    @setClass name
    @$('.flex-wrapper').removeClass 'three one'


        KD.getSingleton('mainController').accountChanged KD.whoami()

        KD.mixpanel "Redeem, success"

  hide: (callback) ->

