Skip to content

Commit 3b58636

Browse files
committed
use crypto params
1 parent 2da835b commit 3b58636

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/Backend/UserBackend.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,12 @@ public function checkPassword(string $uid, string $password)
343343
private function getPasswordAlgorithm()
344344
{
345345
$cryptoType = $this->properties[Opt::CRYPTO_CLASS];
346-
$passwordAlgorithm = new $cryptoType($this->localization);
346+
$cryptoParam0 = $this->properties[Opt::CRYPTO_PARAM_0];
347+
$cryptoParam1 = $this->properties[Opt::CRYPTO_PARAM_1];
348+
$cryptoParam2 = $this->properties[Opt::CRYPTO_PARAM_2];
349+
$passwordAlgorithm = new $cryptoType(
350+
$this->localization, $cryptoParam0, $cryptoParam1, $cryptoParam2
351+
);
347352

348353
if ($passwordAlgorithm === null) {
349354
$this->logger->error(

0 commit comments

Comments
 (0)