Adjusted exception message when pdkdbf2 is set but environment isn't OK

This commit is contained in:
Alexander Makarov
2014-06-30 21:23:33 +04:00
parent dd5a16aa4a
commit deecdcad84

View File

@ -212,7 +212,7 @@ class Security extends Component
if (function_exists('hash_pbkdf2')) { if (function_exists('hash_pbkdf2')) {
return hash_pbkdf2($this->derivationHash, $password, $salt, $this->derivationIterations, $this->cryptKeySize, true); return hash_pbkdf2($this->derivationHash, $password, $salt, $this->derivationIterations, $this->cryptKeySize, true);
} else { } else {
throw new InvalidConfigException('Derive key strategy "pbkdf2" requires PHP >= 5.5.0, either upgrade your environment or use another strategy.'); throw new InvalidConfigException('Security::$deriveKeyStrategy is set to "pbkdf2", which requires PHP >= 5.5.0. Either upgrade your run-time environment or use another strategy.');
} }
} }