Coder Social home page Coder Social logo

ubient / laravel-pwned-passwords Goto Github PK

View Code? Open in Web Editor NEW
65.0 3.0 7.0 61 KB

Simple Laravel validation rule that allows you to prevent or limit the re-use of passwords that are known to be pwned (unsafe). Based on TroyHunt's Have I Been Pwned (https://haveibeenpwned.com)

License: MIT License

PHP 100.00%
laravel php validation password password-safety haveibeenpwned pwned pwned-passwords passwords security

laravel-pwned-passwords's People

Contributors

a-lawrence avatar claudiodekker avatar tommym9 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

laravel-pwned-passwords's Issues

the VALIDATION_ERROR_MESSAGE replaces :num with threshold

Hi there,

First of all, thank you for the package.

I think i found a little bug, when the validation fails it always tells me the password has been found 1 time, because for my test i will not except more. Now i know for sure the password 'Welcome01' has more then 1 security incident.

it seems you're replacing the :min with the configured threshold, probably you want to replace it with the result of $this->gateway->search($value)?

besides, the message doesn't seem to be overwriteable, or translatable. maybe you could move this to a publishable language file?

Implement initial password Validation rule

After seeing this tweet earlier today, I figured it would be a great idea to have a similar feature for usage in Laravel.

In order to get the library to do what it should do, it should contain the following abilities:

  • String-based or Object-based implementation of the Validation rule
  • Ability to 'relax' the validation rule by allowing passwords that have been pwned a with a maximum of x-times.

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.