       return  unless workflow.active
       @breadcrumb.selectItem workflow.active.getOption 'name'
 
+    workflow.once "PasswordRecoveryToken", (@recoveryToken) =>
+
   hideBreadcrumb:->
     @breadcrumb.hide()
     document.body.classList.remove 'flow'

        title    : "Go to your environment"
        callback : ->
          KD.singleton("router").handleRoute "/Environments"

  showGroupCreated: (group, subscription) ->

    @breadcrumb.selectItem 'thanks'

    planCodes = Object.keys subscription.quantities
    subtitle =
      if @formData.createAccount
      then "Please check your email to complete your registration."
      else ""

    @addSubView @thankYou = new KDCustomHTMLView
      cssClass : "pricing-final"

        """
        <i class="check-icon"></i>
        <h3 class="pricing-title"><strong>#{group.title}</strong> has been successfully created</h3>
        """

    if loggedIn
      @thankYou.addSubView new KDButtonView
        style    : "solid green"
        title    : "Go to Group"
        callback : ->
          window.open "#{window.location.origin}/#{group.slug}", "_blank"
    else if createAccount
      @thankYou.addSubView @getCompleteYourRegistrationButton()

  getCompleteYourRegistrationButton: ->
    return new KDButtonView
      style    : "solid green"
      title    : "Complete your registration"
      callback : =>
        window.location.href = "/Register/#{encodeURIComponent @recoveryToken}"  if @recoveryToken

  addGroupForm: ->
    @groupForm = @createGroupForm()
