Skip to content

yudhatp/laravel-check-default-password

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Check Default Password

Check is user using default password and force them to change their password. This package compatible for Laravel 6.x, 7.x, 8.x, 9.x, 10,x

Installation

You can install the package via composer:

composer require yudhatp/laravel-check-default-password

publish config file with:

php artisan vendor:publish --tag=yudhatp-check-default-password-config

Usage

on "kernel.php", add this line on your "protected $middlewareGroups"

'web' => [
    ...
    \Yudhatp\CheckDefaultPassword\Middleware\CheckDefaultPasswordMiddleware::class,
    ...
],

Setting Config

change default laravel user field. at default the value is "id"

'user' => 'employee_id'

change redirect url

'redirect' => 'profile'

set password which not allowed

'passwords' => [
    ...
    '1234',
    '123456',
    ...
]

set except routes

'except-routes' => [
    ...
    'login',
    'logout',
    ...
]

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

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

About

Check Default Password for Laravel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages