Giter VIP home page Giter VIP logo

laravel-pwned-passwords's People

Contributors

dependabot-preview[bot] avatar jessseee avatar nickurt avatar ryantheallmighty avatar ysbrandb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

hramose jessseee

laravel-pwned-passwords's Issues

Laravel 8 Support

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

IsPwnedPassword rule in v1.2 is broken

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.