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


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