Laravel Login verification encounters a pit hash verification match problem

Source: Internet
Author: User

Using Laravel to write login authentication is to use crypt encryption to add the user to the database later authentication password decryption has been an error, the payload is Invaild

Because I am laravel frame small white oneself think for a long time did not have the result Baidu search unexpectedly domestic laravel framework of information so little nothing found

And then Google search Laravel the payload is invaild in some English forums to find some information but it's not very helpful to me or not solved.

Think of the hash encryption and then switch to hash encryption to add the user

But when the login to verify the error when the hash match to go the false interval

Thinking for a while

And then I thought it was a database problem. After all, this database user table was not built by me, it was built by one of my partener.

And then surprised to find that the password field length is too short. VarChar only 50 when you add a user, the password will be stored incomplete if the match is definitely not a success.

So the password field length is 1024

And then the hash match is normal.

Laravel Login verification encounters a pit hash verification match problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.