Browse Source

Security fix: Waiting before retrying password reset

Michael Chernyshev 5 years ago
parent
commit
ace38c133f
2 changed files with 2 additions and 0 deletions
  1. 1 0
      config/auth.php
  2. 1 0
      resources/lang/en/passwords.php

+ 1 - 0
config/auth.php

@@ -97,6 +97,7 @@ return [
             'provider' => 'users',
             'provider' => 'users',
             'table' => 'password_resets',
             'table' => 'password_resets',
             'expire' => 60,
             'expire' => 60,
+            'timeout' => 60,
         ],
         ],
     ],
     ],
 
 

+ 1 - 0
resources/lang/en/passwords.php

@@ -17,5 +17,6 @@ return [
     'sent' => 'We have e-mailed your password reset link!',
     'sent' => 'We have e-mailed your password reset link!',
     'token' => 'This password reset token is invalid.',
     'token' => 'This password reset token is invalid.',
     'user' => "We can't find a user with that e-mail address.",
     'user' => "We can't find a user with that e-mail address.",
+    'timeout' => 'Please wait before retrying.',
 
 
 ];
 ];