valorin / pwned-validator

Super simple Laravel Validator for checking password via the Pwned Passwords service of Have I Been Pwned
MIT License
383 stars 24 forks source link

Updated cache duration to laravel 5.8 changes #5

Closed SamuelNitsche closed 5 years ago

SamuelNitsche commented 5 years ago

In laravel 5.8 the cache duration has been changed to use seconds instead of minutes. Head over to https://laravel.com/docs/5.8/upgrade#cache-ttl-in-seconds for more information.

valorin commented 5 years ago

Nice! I didn't realise you can pass a DateTime in there, that makes it easy to support 5.8 and older. Thanks! 😄