logo

pleroma-fe

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

recovery_form.vue (1780B)


  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.recovery') }}
  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">{{ $t('login.recovery_code') }}</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="requireTOTP"
  29. >
  30. {{ $t('login.enter_two_factor_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. class="fa-scale-110 fa-old-padding"
  63. icon="times"
  64. />
  65. </button>
  66. </div>
  67. </div>
  68. </div>
  69. </template>
  70. <script src="./recovery_form.js"></script>