logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

totp_form.vue (1787B)


  1. <template>
  2. <div class="login panel panel-default">
  3. <!-- Default panel contents -->
  4. <div class="panel-heading">
  5. {{ $t('login.heading.totp') }}
  6. </div>
  7. <div class="panel-body">
  8. <form
  9. class="login-form"
  10. @submit.prevent="submit"
  11. >
  12. <div class="form-group">
  13. <label for="code">
  14. {{ $t('login.authentication_code') }}
  15. </label>
  16. <input
  17. id="code"
  18. v-model="code"
  19. class="input form-control"
  20. >
  21. </div>
  22. <div class="form-group">
  23. <div class="login-bottom">
  24. <div>
  25. <button
  26. class="button-unstyled -link"
  27. type="button"
  28. @click.prevent="requireRecovery"
  29. >
  30. {{ $t('login.enter_recovery_code') }}
  31. </button>
  32. <br>
  33. <button
  34. class="button-unstyled -link"
  35. type="button"
  36. @click.prevent="abortMFA"
  37. >
  38. {{ $t('general.cancel') }}
  39. </button>
  40. </div>
  41. <button
  42. type="submit"
  43. class="btn button-default"
  44. >
  45. {{ $t('general.verify') }}
  46. </button>
  47. </div>
  48. </div>
  49. </form>
  50. </div>
  51. <div
  52. v-if="error"
  53. class="form-group"
  54. >
  55. <div class="alert error">
  56. {{ error }}
  57. <button
  58. class="button-unstyled"
  59. @click="clearError"
  60. >
  61. <FAIcon
  62. size="lg"
  63. class="fa-scale-110 fa-old-padding"
  64. icon="times"
  65. />
  66. </button>
  67. </div>
  68. </div>
  69. </div>
  70. </template>
  71. <script src="./totp_form.js"></script>