the bola v2 website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

protect.php 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default (or site-wide) Scheme
  6. |--------------------------------------------------------------------------
  7. |
  8. | The default scheme will be applied to every page of the site.
  9. | By default, you probably won't want to protect anything
  10. | at all, but you are free to select one if necessary.
  11. |
  12. */
  13. 'default' => null,
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Protection Schemes
  17. |--------------------------------------------------------------------------
  18. |
  19. | Here you may define all of the protection schemes for your application
  20. | as well as their drivers. You may even define multiple schemes for
  21. | the same driver to easily protect different types of pages.
  22. |
  23. | Supported drivers: "ip_address", "auth", "password"
  24. |
  25. */
  26. 'schemes' => [
  27. 'ip_address' => [
  28. 'driver' => 'ip_address',
  29. 'allowed' => ['127.0.0.1'],
  30. ],
  31. 'logged_in' => [
  32. 'driver' => 'auth',
  33. 'login_url' => '/login',
  34. 'append_redirect' => true,
  35. ],
  36. 'password' => [
  37. 'driver' => 'password',
  38. 'allowed' => ['secret'],
  39. 'form_url' => null,
  40. ],
  41. ],
  42. ];