 
       @button.hideLoader()
 
+    @bind2FAEvents()
+
     KD.singletons.router.on 'RouteInfoHandled', =>
       @email.icon.unsetTooltip()
       @password.icon.unsetTooltip()
 
 
-  reset:->
+  create2FAInput: ->
+    return new LoginInputView
+      inputOptions    :
+        name          : 'tfcode'
+        placeholder   : 'Two-Factor Authentication Code'
+        testPath      : 'register-form-tfcode'
+        attributes    :
+          testpath    : 'register-form-tfcode'
+
+
+  bind2FAEvents: ->
+
+    @on 'TwoFactorEnabled', =>
+      @button.hideLoader()
+      @tfcode.show()
+      @tfcode.setFocus()
+
+
+  reset: ->
 
     inputs = KDFormView.findChildInputs this
     input.clearValidationFeedback() for input in inputs

            minLength     : "Passwords should be at least 8 characters."
        decorateValidation: no

    @email?.destroy()
    @email = new LoginInputViewWithLoader
      inputOptions        :

        validate          : KD.utils.getEmailValidator
          container       : this
          password        : @password
          tfcode          : @tfcode
        decorateValidation: no
        focus             : => @email.icon.unsetTooltip()
        keydown           : (event) => @submitForm event  if event.which is ENTER
