2017 © Pedro Peláez
 

library laravel-password

Protect your users from entering dumb and common passwords

image

unicodeveloper/laravel-password

Protect your users from entering dumb and common passwords

  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 40 Forks
  • 0 Open issues
  • 5 Versions
  • 18 % Grown

The README.md

laravel-password

Latest Stable Version License Quality Score Total Downloads, (*1)

Guard your users from security problems by preventing them from having dumb passwords

Introduction

This package can be used to verify the user provided password is not one of the top 10,000 worst passwords as analyzed by a respectable IT security analyst. Read about all here, here(wired) or here(telegram), (*2)

Installation

PHP 5.5+ or HHVM 3.3+, and Composer are required., (*3)

To get the latest version of Laravel Password, simply add the following line to the require block of your composer.json file., (*4)

"unicodeveloper/laravel-password": "1.0.*"

You'll then need to run composer install or composer update to download it and have the autoloader updated., (*5)

  • If you're on Laravel 5.5 or above, that's all you need to do! Check out the usage examples below.
  • If you're on Laravel < 5.5, you'll need to register the service provider. Open up config/app.php and add the following to the providers array:
Unicodeveloper\DumbPassword\DumbPasswordServiceProvider::class

Usage

Use the rule dumbpwd in your validation like so:, (*6)

/**
 * Get a validator for an incoming registration request.
 *
 * @param  array  $data
 * @return \Illuminate\Contracts\Validation\Validator
 */
protected function validator(array $data)
{
    return Validator::make($data, [
        'name' => 'required|max:255',
        'email' => 'required|email|max:255|unique:users',
        'password' => 'required|min:6|dumbpwd|confirmed',
    ]);
}

Error shows on the page like so:, (*7)

screen shot 2016-07-02 at 1 22 45 pm, (*8)

By default, the error message returned is This password is just too common. Please try another!., (*9)

You can customize the error message by opening resources/lang/en/validation.php and adding to the array like so:, (*10)

  'dumbpwd' => 'You are using a dumb password abeg',

screen shot 2016-07-02 at 2 12 14 pm, (*11)

Change log

Please see CHANGELOG for more information on what has changed recently., (*12)

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities., (*13)

Inspiration

How can I thank you?

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!, (*14)

Don't forget to follow me on twitter!, (*15)

Thanks! Prosper Otemuyiwa., (*16)

License

The MIT License (MIT). Please see License File for more information., (*17)

The Versions

25/01 2018

dev-master

9999999-dev https://github.com/unicodeveloper/laravel-password

Protect your users from entering dumb and common passwords

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

security passwords unicodeveloper dumb

25/01 2018

1.0.3

1.0.3.0 https://github.com/unicodeveloper/laravel-password

Protect your users from entering dumb and common passwords

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

security passwords unicodeveloper dumb

27/04 2017

1.0.2

1.0.2.0 https://github.com/unicodeveloper/laravel-password

Protect your users from entering dumb and common passwords

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

security passwords unicodeveloper dumb

26/04 2017

1.0.1

1.0.1.0 https://github.com/unicodeveloper/laravel-password

Protect your users from entering dumb and common passwords

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

security passwords unicodeveloper dumb

02/07 2016

1.0.0

1.0.0.0 https://github.com/unicodeveloper/laravel-password

Protect your users from entering dumb and common passwords

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

security passwords unicodeveloper dumb