From 52732da960710936b8bdf62e6dde4c33236a446d Mon Sep 17 00:00:00 2001 From: ncoronel Date: Wed, 26 Aug 2026 15:56:08 -0300 Subject: [PATCH] feat(auth): use environment variable for password reset expiration --- .env.example | 1 + config/auth.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 271a397..e04ee5a 100644 --- a/.env.example +++ b/.env.example @@ -31,6 +31,7 @@ AUTH_LOGIN_ATTEMPT_WINDOW_MINUTES=30 AUTH_LOGIN_LOCK_MINUTES=15 AUTH_LOGIN_RATE_LIMIT_PER_MINUTE=10 AUTH_LOGIN_IP_RATE_LIMIT_PER_MINUTE=30 +AUTH_PASSWORD_RESET_EXPIRATION_MINUTES=60 LOG_CHANNEL=daily LOG_STACK=single diff --git a/config/auth.php b/config/auth.php index b752282..6fdf5c4 100644 --- a/config/auth.php +++ b/config/auth.php @@ -96,7 +96,7 @@ return [ 'users' => [ 'provider' => 'users', 'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'), - 'expire' => 60, + 'expire' => (int) env('AUTH_PASSWORD_RESET_EXPIRATION_MINUTES', 60), 'throttle' => 60, ], ],