"password_hashing.php" File is not working on live server

corewaysolution wrote on Friday, August 14, 2015:

I m Working on php 5.6.2 ubuntu server which runs this openemr project.
when i go to my login page it shows but when i give username and password than the blank page occurs .

i have started debug this issue found that there is problem in this below function in “password_hashing.php” file

function password_hash($plaintext,$salt)
{
// if this is a SHA1 salt, the use prepended salt
if(strpos($salt,SALT_PREFIX_SHA1)===0)
{
return SALT_PREFIX_SHA1 . sha1($salt.$plaintext);
}
else { // Otherwise use PHP crypt()

    return crypt($plaintext,$salt);
	
}

}

yehster wrote on Friday, August 14, 2015:

That is the result of using an outdated version of OpenEMR.

To prevent the conflict the function name conflict, newer version have renamed it to oemr_password_hash

fsgl wrote on Friday, August 14, 2015:

Try this,