Upgraded PHP, turns out 5.3.6 is not enough for laravel 4. has to do with bcrypt I think
Authentication in Laravel 4 with different MySQL engines
-
28-06-2022 - |
문제
OK I have got a user table with a username and hashed password in a db. Works fine on my local machine but when I export to a different server login doesn't work (ie bad password)
I have checked and the hashed value looks the same, the only difference I found is that a different engine is used, I have InnoDB on my local mysql and it is MyISAM on the live server, would that be the issue? I thought Laravel was doing the encoding and reading?
Cheers
해결책 2
다른 팁
Posted this as a comment before, but as it is the only possible reason I can imagine, I'll repost this as an answer.
If you're running two separate Laravel installations, you might have different encryption keys set in app/config/app.php
. Make sure those are the same and it should work.