codeigniter_boilerplate icon indicating copy to clipboard operation
codeigniter_boilerplate copied to clipboard

Did updates and missing function password_verify

Open boblennes opened this issue 10 years ago • 2 comments
trafficstars

It looks like you did a great job putting this together.

However, witth a fresh install following instructions, I got an error in the admin when trying to log in:

Severity: Error Message: Call to undefined function password_verify() Filename: models/Admin_user_model.php Line Number: 14

boblennes avatar Nov 21 '15 20:11 boblennes

Hi,

The function password_verify() is come from native PHP but only after version 5.5 as indicated here: http://php.net/manual/en/function.password-verify.php

So you will need to upgrade PHP version server to enable this function, as well as another function password_hash().

Update:

I checked Codeigniter codes, and it also provide a compat solution for this: system/core/compat/password.php

But I still suggest you work with new PHP version(5.5+).

Thanks, DJ

jiji262 avatar Nov 22 '15 04:11 jiji262

hi, I wonder how to upgrade to the latest CI version? thanks

huangxiaoye avatar Apr 08 '16 03:04 huangxiaoye