Skip to content

[12.x] Additional password reset token env vars #55408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
'users' => [
'provider' => 'users',
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
'expire' => 60,
'throttle' => 60,
'expire' => (int) env('AUTH_PASSWORD_RESET_TOKEN_EXPIRE', 60),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to set or change these values through env variables?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same reason we allow the table to be set through an environment variable.

With Laravel 11.x, new projects don't start with the majority of config files published in order to reduce boilerplate.

This change allows the expiration and throttle to be configured without publishing the entire auth.php file or needing to add the passwords section at all (if already published).

'throttle' => (int) env('AUTH_PASSWORD_RESET_TOKEN_THROTTLE', 60),
],
],

Expand Down
Loading