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 (1826B)


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