google2fa.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. return [
  3. /*
  4. * Enable / disable Google2FA.
  5. */
  6. 'enabled' => env('OTP_ENABLED', true),
  7. /*
  8. * Lifetime in minutes.
  9. *
  10. * In case you need your users to be asked for a new one time passwords from time to time.
  11. */
  12. 'lifetime' => env('OTP_LIFETIME', 0), // 0 = eternal
  13. /*
  14. * Renew lifetime at every new request.
  15. */
  16. 'keep_alive' => env('OTP_KEEP_ALIVE', true),
  17. /*
  18. * Auth container binding.
  19. */
  20. 'auth' => 'auth',
  21. /*
  22. * Guard.
  23. */
  24. 'guard' => '',
  25. /*
  26. * 2FA verified session var.
  27. */
  28. 'session_var' => 'google2fa',
  29. /*
  30. * One Time Password request input name.
  31. */
  32. 'otp_input' => 'one_time_password',
  33. /*
  34. * One Time Password Window.
  35. */
  36. 'window' => 1,
  37. /*
  38. * Forbid user to reuse One Time Passwords.
  39. */
  40. 'forbid_old_passwords' => false,
  41. /*
  42. * User's table column for google2fa secret.
  43. */
  44. 'otp_secret_column' => 'google2fa_secret',
  45. /*
  46. * One Time Password View.
  47. */
  48. 'view' => 'google2fa.index',
  49. /*
  50. * One Time Password error message.
  51. */
  52. 'error_messages' => [
  53. 'wrong_otp' => "The 'One Time Password' typed was wrong.",
  54. 'cannot_be_empty' => 'One Time Password cannot be empty.',
  55. 'unknown' => 'An unknown error has occurred. Please try again.',
  56. ],
  57. /*
  58. * Throw exceptions or just fire events?
  59. */
  60. 'throw_exceptions' => env('OTP_THROW_EXCEPTION', true),
  61. /*
  62. * Which image backend to use for generating QR codes?
  63. *
  64. * Supports imagemagick, svg and eps
  65. */
  66. 'qrcode_image_backend' => \PragmaRX\Google2FALaravel\Support\Constants::QRCODE_IMAGE_BACKEND_SVG,
  67. ];