문제

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

Upgraded PHP, turns out 5.3.6 is not enough for laravel 4. has to do with bcrypt I think

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top