#help me when i register succes fully then when i login error and i try debug found info
1 messages · Page 1 of 1 (latest)
Show your user model, you're probably double hashing the password
(also Auth::attempt exists)
My very first question would be, why would you log plain text passwords? That's a massive security risk
I don't care about anything right now. Let's fix this first.
Once I fix this, I should probably add more security.
Where should I look?
You're hashing the password twice. But I'd really advice you to go through the Laravel docs, there's quite a few things here that could be simplified
Which part do I need to fix?
By not hashing the password in multiple places. Laravel does this by using a cast on the model (https://github.com/laravel/laravel/blob/11.x/app/Models/User.php#L45), so you'd simply set the password and then the cast would take care of creating the hash.