File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,10 @@ class BackpackServiceProvider extends ServiceProvider
30
30
31
31
// Indicates if loading of the provider is deferred.
32
32
protected $ defer = false ;
33
+
33
34
// Where the route file lives, both inside the package and in the app (if overwritten).
34
35
public $ routeFilePath = '/routes/backpack/base.php ' ;
36
+
35
37
// Where custom routes can be written, and will be registered by Backpack.
36
38
public $ customRoutesFilePath = '/routes/backpack/custom.php ' ;
37
39
@@ -40,7 +42,7 @@ class BackpackServiceProvider extends ServiceProvider
40
42
*
41
43
* @return void
42
44
*/
43
- public function boot (\ Illuminate \ Routing \ Router $ router )
45
+ public function boot (Router $ router )
44
46
{
45
47
$ this ->loadViewsWithFallbacks ();
46
48
$ this ->loadTranslationsFrom (realpath (__DIR__ .'/resources/lang ' ), 'backpack ' );
@@ -259,8 +261,8 @@ public function loadConfigs()
259
261
'backpack ' => [
260
262
'provider ' => 'backpack ' ,
261
263
'table ' => 'password_resets ' ,
262
- 'expire ' => 60 ,
263
- 'throttle ' => config ('backpack.base.password_recovery_throttle_notifications ' ),
264
+ 'expire ' => config ( ' backpack.base.password_recovery_token_expiration ' , 60 ) ,
265
+ 'throttle ' => config ('backpack.base.password_recovery_throttle_notifications ' ),
264
266
],
265
267
];
266
268
Original file line number Diff line number Diff line change 236
236
// password reset, before they can try again for the same email?
237
237
'password_recovery_throttle_notifications ' => 600 , // time in seconds
238
238
239
+ // How much time should the token sent to the user email be considered valid?
240
+ // After this time expires, user needs to request a new reset token.
241
+ 'password_recovery_token_expiration ' => 60 , // time in minutes
242
+
239
243
// Backpack will prevent an IP from trying to reset the password too many times,
240
244
// so that a malicious actor cannot try too many emails, too see if they have
241
245
// accounts or to increase the AWS/SendGrid/etc bill.
You can’t perform that action at this time.
0 commit comments