mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Update class name FixedBitNotation to base2n
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user