mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 23:25:56 +00:00
auth_internal: load Base32 using proper namespace
This commit is contained in:
@@ -33,11 +33,7 @@ class Auth_Internal extends Plugin implements IAuthModule {
|
|||||||
|
|
||||||
if ($row = $sth->fetch()) {
|
if ($row = $sth->fetch()) {
|
||||||
|
|
||||||
require_once "lib/otphp/vendor/base32.php";
|
$base32 = new \OTPHP\Base32();
|
||||||
require_once "lib/otphp/lib/otp.php";
|
|
||||||
require_once "lib/otphp/lib/totp.php";
|
|
||||||
|
|
||||||
$base32 = new Base32();
|
|
||||||
|
|
||||||
$otp_enabled = $row['otp_enabled'];
|
$otp_enabled = $row['otp_enabled'];
|
||||||
$secret = $base32->encode(sha1($row['salt']));
|
$secret = $base32->encode(sha1($row['salt']));
|
||||||
|
|||||||
Reference in New Issue
Block a user