<dolphy-dialog-window class="dol-access-dialog-2fa" :close-btn="false">
  <dolphy-dialog-title>
    Two-Factor Authentication
  </dolphy-dialog-title>

  <dolphy-dialog-body>
    <fieldset v-bind:disabled="loading">
      <form @submit="submit(form, $event)">
        <div class="dol-m-b-10">
          <label class="dol-label" for="2facode">Two-factor authentication code</label>
          <input type="text" v-model="form.code" placeholder="2FA Code" id="2facode" class="dol-form-control">
        </div>

        <div class="dol-desc">
          <span>Enter the code from the two-factor app on your mobile device. If you've lost your device, you may enter one of your recovery codes.</span>
        </div>

        <div class="dol-m-t-20">
          <label @click="remember($event)">
            <input type="checkbox" v-model="form.remember">
            <span class="dol-desc">Remember this device for 30 days.</span>
          </label>
        </div>
      </form>
    </fieldset>
  </dolphy-dialog-body>

  <dolphy-dialog-footer>
    <dolphy-dialog-button type="primary" @click="submit(form)">
      <span>Verify Code</span>
    </dolphy-dialog-button>
  </dolphy-dialog-footer>
</dolphy-dialog-window>
