nickurt / laravel-pwned-passwords Goto Github PK
View Code? Open in Web Editor NEWPwnedPasswords-plugin for Laravel 10.x/11.x
License: MIT License
PwnedPasswords-plugin for Laravel 10.x/11.x
License: MIT License
Hi ๐
Laravel 8 has arrived this week, and when upgrading my application, noticed this package wasn't updated yet.
Are you currently looking at doing that? Would you like a pull request to add support?
Doesn't look like there's any significant changes, just a composer.json update to upgrade the dependency versions for laravel/framework
and guzzlehttp/guzzle
Thanks
In your documentation you have this code snippet to show how to use this package as a validation rule:
public function rules()
{
return [
'password' => ['required', new \nickurt\PwnedPasswords\Rules\IsPwnedPassword(20)]
];
}
However if I do that I get this error in the latest stable release (1.2):
Symfony\Component\Debug\Exception\FatalThrowableError: Too few arguments to function nickurt\PwnedPasswords\Rules\IsPwnedPassword::__construct(), 0 passed in /var/www/app/Components/CommonApiValidationRules.php on line 101 and at least 1 expected in file /var/www/vendor/nickurt/laravel-pwned-passwords/src/Rules/IsPwnedPassword.php on line 27
if I look at the IsPwnedPassword.php
class I see that it's requiring a password as the first argument with frequency being the second. When I compare it to your master I see that you have already fixed this file and I would imagine it works.
I am including this package via composer and am not able to include the latest dev master version of this package. Would you be able to create a new release or backport this fix to 1.2? That would be very much appreciated.
Thank you for your time! This is a very nice modern package.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.