devaslanphp / project-management

An open source Project management tool based on Laravel and Filament
https://devaslanphp.github.io/project-management
MIT License
721 stars 200 forks source link

Unable to login with default user when installed from scratch #31

Closed denistorresan closed 1 year ago

denistorresan commented 1 year ago

Hi, I tested a fresh installation, and after migrate and db:seed I tryed to login using john.doe@helper.app / Passw@rd and seems not work (login invalid on form).

btw, I suggest to replace on Database\Seeders\DefaultUserSeeder.php the hashed password from:

            'password' => '$2a$12$h/.Jq3QGHYoJBLBo8hw1mOtJOmtU.BVJFbBWFC7XAVXmE5gOjdXV.', // Passw@rd

to:

            'password' => bcrypt('Passw@rd'),
heloufir commented 1 year ago

Okey I think this would be the problem, not letting you login with this password (pre-hashed).

I will update and push a new PR containing what you suggested.