Skip to content

A free open source IT asset/license management system

password.expire updated for forgotten password token expiration

snipeb29f794b35ca
diff --git a/.env.example b/.env.example
index b85385d559..af0e127eef 100644
--- a/.env.example
+++ b/.env.example
@@ -125,6 +125,7 @@ PRIVATE_AWS_BUCKET_ROOT=null
# --------------------------------------------
LOGIN_MAX_ATTEMPTS=5
LOGIN_LOCKOUT_DURATION=60
+RESET_PASSWORD_LINK_EXPIRES=900
# --------------------------------------------
# OPTIONAL: MISC
diff --git a/config/auth.php b/config/auth.php
index d8a161f9f4..41ce176d16 100644
--- a/config/auth.php
+++ b/config/auth.php
@@ -102,7 +102,7 @@ return [
'provider' => 'users',
'email' => 'auth.emails.password',
'table' => 'password_resets',
- 'expire' => env('LOGIN_LOCKOUT_DURATION', 60),
+ 'expire' => env('RESET_PASSWORD_LINK_EXPIRES', 900),
'throttle' => env('LOGIN_MAX_ATTEMPTS', 60),
],
],
@@ -120,4 +120,5 @@ return [
'password_timeout' => 10800,
+
];