문제

When I create a user with Sentry::createUser() or Sentry::register() and I pass the password (as shown in https://cartalyst.com/manual/sentry/users/register) the password won't be saved. Sentry will create the user but the password table attribute is empty.

Why? I know a workaround is to create the user, then get it from the DB, set the password and save it again, but I don't like to do that.

도움이 되었습니까?

해결책

It's not really a bug, because your php version is too old.

Like described here https://github.com/cartalyst/sentry/issues/98 Sentry checks the computed hashed password. Because of your old php version (<=5.3.7) Sentry uses bcrypt instead of DES. Sentry doesn't support bcrpyt anymore so you got an exception. Of course the exception is a bit confusing, but you can simply fix this issue. Just upgrade your php version at least to 5.4 and it should work.

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