How to disble password reset throttle? #749
-
normally, in a laravel app, it's enough to disable In backpack, it uses a custom throttling middleware and we cannot disable it. We need to allow [dev only, of course] infinite retry |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We don't have a built in way to specifically disable it. but you can use overly big limits in https://github.com/Laravel-Backpack/CRUD/blob/4c7030524540d34ca32db367a48ae03d34c14505/src/config/backpack/base.php#L98 If you want to make those configs It's not a good practice to "comment code" to work only on local. That's bound for disaster if you forget and commit that to prod. Either have a boolean setting to specifically enable/disable something, or use stupid big limits while testing, without affecting other environments. Let me know if that helps. Cheers |
Beta Was this translation helpful? Give feedback.
We don't have a built in way to specifically disable it. but you can use overly big limits in https://github.com/Laravel-Backpack/CRUD/blob/4c7030524540d34ca32db367a48ae03d34c14505/src/config/backpack/base.php#L98
If you want to make those configs
environment dependent
, you can can just use'password_recovery_throttle_access' => env('PASSWORD_RECOVERY_THROTTLE_ACCESS', '3,10')
.It's not a good practice to "comment code" to work only on local. That's bound for disaster if you forget and commit that to prod. Either have a boolean setting to specifically enable/disable something, or use stupid big limits while testing, without affecting other environments.
Let me know if that helps.
Cheers