Skip to content

Commit 92bee1d

Browse files
committed
* [FIX] Minor bugfixes
1 parent 90c1cf1 commit 92bee1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Authenticator/lib/Services/AuthenticatorService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
use SP\Modules\Web\Plugins\Authenticator\Util\Google2FA;
3636
use SP\Plugin\PluginManager;
3737
use SP\Services\Service;
38-
use SP\Util\Util;
38+
use SP\Util\PasswordUtil;
3939

4040
defined('APP_ROOT') || die();
4141

@@ -63,7 +63,7 @@ final class AuthenticatorService extends Service
6363
*/
6464
public static function makeInitializationKey()
6565
{
66-
$iv = Util::generateRandomBytes(32);
66+
$iv = PasswordUtil::generateRandomBytes(32);
6767

6868
$base32 = new Base2n(
6969
5,
@@ -242,7 +242,7 @@ public function generateRecoveryCodes()
242242
$i = 1;
243243

244244
do {
245-
$codes[] = Util::generateRandomBytes(10);
245+
$codes[] = PasswordUtil::generateRandomBytes(10);
246246
$i++;
247247
} while ($i <= 10);
248248

0 commit comments

Comments
 (0)