security.blade.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @extends('settings.template')
  2. @section('section')
  3. <div class="title">
  4. <h3 class="font-weight-bold">Security</h3>
  5. </div>
  6. <hr>
  7. <section class="pt-4">
  8. <div class="mb-4 pb-4">
  9. <div class="d-flex justify-content-between align-items-center">
  10. <h4 class="font-weight-bold mb-0">Two-factor authentication</h4>
  11. @if($user->{'2fa_enabled'})
  12. <a class="btn btn-success btn-sm font-weight-bold" href="#">Enabled</a>
  13. @endif
  14. </div>
  15. <hr>
  16. @if($user->{'2fa_enabled'})
  17. @include('settings.security.2fa.partial.edit-panel')
  18. @else
  19. @include('settings.security.2fa.partial.disabled-panel')
  20. @endif
  21. </div>
  22. @include('settings.security.log-panel')
  23. @include('settings.security.device-panel')
  24. @if(config('pixelfed.account_deletion') && !$user->is_admin)
  25. <h4 class="font-weight-bold pt-3">Danger Zone</h4>
  26. <div class="mb-4 border rounded border-danger">
  27. <ul class="list-group mb-0 pb-0">
  28. <li class="list-group-item border-left-0 border-right-0 py-3 d-flex justify-content-between">
  29. <div>
  30. <p class="font-weight-bold mb-1">Temporarily Disable Account</p>
  31. <p class="mb-0 small">Disable your account to hide your posts until next log in.</p>
  32. </div>
  33. <div>
  34. <a class="btn btn-outline-danger font-weight-bold py-1" href="{{route('settings.remove.temporary')}}">Disable</a>
  35. </div>
  36. </li>
  37. <li class="list-group-item border-left-0 border-right-0 py-3 d-flex justify-content-between">
  38. <div>
  39. <p class="font-weight-bold mb-1">Delete this Account</p>
  40. <p class="mb-0 small">Once you delete your account, there is no going back. Please be certain.</p>
  41. </div>
  42. <div>
  43. <a class="btn btn-outline-danger font-weight-bold py-1" href="{{route('settings.remove.permanent')}}">Delete</a>
  44. </div>
  45. </li>
  46. </ul>
  47. </div>
  48. @endif
  49. </section>
  50. @endsection