Hi Guys,
I'm having some headache trying to solve this problem.
In my table seeder, I create this user :
User::create(['email' => 'example@energy.fr', 'password' => 'azerty']);
My user model is : http://laravel.io/bin/OBMW
Yet, my login function always fails : http://laravel.io/bin/dYkK
My structure table is the following : http://laravel.io/bin/QVba If anyone has an idea !
I'm using Laravel4 with MAMP (PHP 5.5.3) on MAC OS10.9. I've already used Laravel 4 for other projects with this configuration and never encountered any errors.
I tried with a password of 1 character and then 10, same result :/
would you past the structure of your user table ??
ah!
Your password column is limited to 32 car, and a hash with BcryptHasher by default, produce a 60 car string ... and so your passwords in DB are truncated !
That was it ! Always the dumbest mistakes the hardest to find, thank you :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community