kishor10d / Admin-Panel-User-Management-using-CodeIgniter

Admin Panel User Management Demo - CodeIgniter + AdminLTE Theme
http://cias.codeinsect.com
GNU General Public License v3.0
338 stars 242 forks source link

Call to undefined function password_verify() #1

Closed mudris closed 7 years ago

mudris commented 7 years ago

After fresh install have PHP error PHP Fatal error: Call to undefined function password_verify() in.... cias_helper.php on line 46

kishor10d commented 7 years ago

Please check your php version. To work password_verify(), you need (PHP 5 >= 5.5.0, PHP 7).

Documentation : http://php.net/manual/en/function.password-verify.php

priti321 commented 7 years ago

I also having same problem. previously i have php version 5.4. i'm changed it to 5.6. but when we enter correct login details it also shows mismatch error.

kishor10d commented 7 years ago

Can you please update the comment with error?

If your database don't have such password then please first generate the password using following script. Then, paste that password to your password field in user table.

<?php
if(!function_exists('getHashedPassword'))
{
    function getHashedPassword($plainPassword)
    {
        return password_hash($plainPassword, PASSWORD_DEFAULT);
    }
}
echo getHashedPassword("codeinsect");
?>

You will get hashed password of codeinsect. Paste that into the user table and try to login with your email and password - codeinsect

sibbu2005 commented 6 years ago

yo :)

ghost commented 6 years ago

hello, I am trying to modifying the code in such way that a user can register himself in the system.. I have made a link just after forgot password and created a corresponding method in the controller class..however it is showing me the following error: Message: call_user_func_array() expects parameter 1 to be a valid callback, class 'Error' does not have a method 'index'

Filename: core/CodeIgniter.php

Line Number: 532

Backtrace:

File: C:\xampp\htdocs\DUSPORTS2\DUSPORTS\DUSPORTS\index.php Line: 315 Function: require_once

GetItBac92 commented 3 years ago

hello, I am trying to modifying the code in such way that a user can register himself in the system.. I have made a link just after forgot password and created a corresponding method in the controller class..however it is showing me the following error: Message: call_user_func_array() expects parameter 1 to be a valid callback, class 'Error' does not have a method 'index'

Filename: core/CodeIgniter.php

Line Number: 532

Backtrace:

File: C:\xampp\htdocs\DUSPORTS2\DUSPORTS\DUSPORTS\index.php Line: 315 Function: require_once