diff --git a/inc/PassHash.class.php b/inc/PassHash.class.php index 7ef068799f9840c7e08b8384f7b57835cad946ff..d24cc75e52110660c1b142dde1102b7713b441a1 100644 --- a/inc/PassHash.class.php +++ b/inc/PassHash.class.php @@ -537,7 +537,7 @@ class PassHash { if(is_null($salt)) { if($compute < 4 || $compute > 31) $compute = 8; - $salt = '$2a$'.str_pad($compute, 2, '0', STR_PAD_LEFT).'$'. + $salt = '$2y$'.str_pad($compute, 2, '0', STR_PAD_LEFT).'$'. $this->gen_salt(22); }