logo

pleroma-fe

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

mfa_totp.vue (941B)


  1. <template>
  2. <div>
  3. <div class="method-item">
  4. <strong>{{ $t('settings.mfa.otp') }}</strong>
  5. <button
  6. v-if="!isActivated"
  7. class="btn button-default"
  8. @click="doActivate"
  9. >
  10. {{ $t('general.enable') }}
  11. </button>
  12. <button
  13. v-if="isActivated"
  14. class="btn button-default"
  15. :disabled="deactivate"
  16. @click="doDeactivate"
  17. >
  18. {{ $t('general.disable') }}
  19. </button>
  20. </div>
  21. <confirm
  22. v-if="deactivate"
  23. :disabled="inProgress"
  24. @confirm="confirmDeactivate"
  25. @cancel="cancelDeactivate"
  26. >
  27. {{ $t('settings.enter_current_password_to_confirm') }}:
  28. <input
  29. v-model="currentPassword"
  30. type="password"
  31. class="input"
  32. >
  33. </confirm>
  34. <div
  35. v-if="error"
  36. class="alert error"
  37. >
  38. {{ error }}
  39. </div>
  40. </div>
  41. </template>
  42. <script src="./mfa_totp.js"></script>