Support the ongoing development of →
Authentication Eloquent Validation
Last updated 1 year ago.

You need to check in database how is stored your password. Is it stored as 123456 or is crypted something like: $2y$10$UYwtjlZXTeMFSJuWfz7fZeR7e39Y4h7CIgj3f3iWEo4hkI4YNCtI2

When you are type your password in login page Laravel crypt your password in something like code above than compare crypted password and email with crypted password and email stored in database.

If your password is not crypted in database you need to crypt it before you store it. Check your logic in users registration and login code.

Last updated 6 years ago.

My password is encrpyted in the database. I use bcrypt to do it.

What I want to know is how this function "Auth->attempt" compare the credentials from the database to my input request.


Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

flashery flashery Joined 20 Feb 2015


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.