diff options
author | Marcin Łojewski <marcin.lojewski@mlojewski.me> | 2018-12-26 14:38:37 +0300 |
---|---|---|
committer | Marcin Łojewski <marcin.lojewski@mlojewski.me> | 2018-12-26 14:38:37 +0300 |
commit | 3b586365a7fe12fc22850449df5194bc160576b2 (patch) | |
tree | e1937080ecfc5c632726cc79e1717e40fb7c093f | |
parent | 2da835b0171ccdd3efc196ef0428e1a8e123ebec (diff) |
use crypto params
-rw-r--r-- | lib/Backend/UserBackend.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Backend/UserBackend.php b/lib/Backend/UserBackend.php index 27927e4..7d910d9 100644 --- a/lib/Backend/UserBackend.php +++ b/lib/Backend/UserBackend.php @@ -343,7 +343,12 @@ final class UserBackend extends ABackend implements private function getPasswordAlgorithm() { $cryptoType = $this->properties[Opt::CRYPTO_CLASS]; - $passwordAlgorithm = new $cryptoType($this->localization); + $cryptoParam0 = $this->properties[Opt::CRYPTO_PARAM_0]; + $cryptoParam1 = $this->properties[Opt::CRYPTO_PARAM_1]; + $cryptoParam2 = $this->properties[Opt::CRYPTO_PARAM_2]; + $passwordAlgorithm = new $cryptoType( + $this->localization, $cryptoParam0, $cryptoParam1, $cryptoParam2 + ); if ($passwordAlgorithm === null) { $this->logger->error( |