We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c1cf1 commit 92bee1dCopy full SHA for 92bee1d
Authenticator/lib/Services/AuthenticatorService.php
@@ -35,7 +35,7 @@
35
use SP\Modules\Web\Plugins\Authenticator\Util\Google2FA;
36
use SP\Plugin\PluginManager;
37
use SP\Services\Service;
38
-use SP\Util\Util;
+use SP\Util\PasswordUtil;
39
40
defined('APP_ROOT') || die();
41
@@ -63,7 +63,7 @@ final class AuthenticatorService extends Service
63
*/
64
public static function makeInitializationKey()
65
{
66
- $iv = Util::generateRandomBytes(32);
+ $iv = PasswordUtil::generateRandomBytes(32);
67
68
$base32 = new Base2n(
69
5,
@@ -242,7 +242,7 @@ public function generateRecoveryCodes()
242
$i = 1;
243
244
do {
245
- $codes[] = Util::generateRandomBytes(10);
+ $codes[] = PasswordUtil::generateRandomBytes(10);
246
$i++;
247
} while ($i <= 10);
248
0 commit comments