From 1b025e0aa2e181e87d7c6fcf6abf8e03112e3c47 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 23 Apr 2023 02:31:44 -0600 Subject: [PATCH] Update class name FixedBitNotation to base2n --- resources/classes/google_authenticator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/classes/google_authenticator.php b/resources/classes/google_authenticator.php index 2fc99b04b0..99f30b07a8 100644 --- a/resources/classes/google_authenticator.php +++ b/resources/classes/google_authenticator.php @@ -41,7 +41,7 @@ class google_authenticator { $time = floor(time() / 30); } - $base32 = new FixedBitNotation(5, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', TRUE, TRUE); + $base32 = new base2n(5, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', TRUE, TRUE); $secret = $base32->decode($secret); $time = pack("N", $time); @@ -76,7 +76,7 @@ class google_authenticator { $secret .= pack("c",$c); } - $base32 = new FixedBitNotation(5, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', TRUE, TRUE); + $base32 = new base2n(5, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', TRUE, TRUE); return $base32->encode($secret); }