From: Andrew Dolgov Date: Wed, 20 Jun 2018 19:15:10 +0000 (+0300) Subject: auth_internal: load Base32 using proper namespace X-Git-Tag: 18.8~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=add9b37ab5eba852d953676540ccd860cc8d0447;p=tt-rss.git auth_internal: load Base32 using proper namespace --- diff --git a/plugins/auth_internal/init.php b/plugins/auth_internal/init.php index 4cc47330..a6829ac0 100644 --- a/plugins/auth_internal/init.php +++ b/plugins/auth_internal/init.php @@ -33,11 +33,7 @@ class Auth_Internal extends Plugin implements IAuthModule { if ($row = $sth->fetch()) { - require_once "lib/otphp/vendor/base32.php"; - require_once "lib/otphp/lib/otp.php"; - require_once "lib/otphp/lib/totp.php"; - - $base32 = new Base32(); + $base32 = new \OTPHP\Base32(); $otp_enabled = $row['otp_enabled']; $secret = $base32->encode(sha1($row['salt']));