Skip to content
Snippets Groups Projects
Commit 0a86da9e authored by Prasad's avatar Prasad
Browse files

Fixes #468: Arguments required for the hash sent

parent 0eb76621
No related branches found
No related tags found
No related merge requests found
......@@ -1069,7 +1069,7 @@ class Vtiger_Functions {
if ($mode == 'CRYPT') {
$salt = null;
if (function_exists('password_hash')) { // php 5.5+
$salt = password_hash();
$salt = password_hash($password, PASSWORD_DEFAULT);
} else {
$salt = '$2y$11$'.str_replace("+",".",substr(base64_encode(openssl_random_pseudo_bytes(17)),0,22));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment