]> git.wh0rd.org Git - tt-rss.git/commitdiff
auth_internal: load Base32 using proper namespace
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Jun 2018 19:15:10 +0000 (22:15 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Jun 2018 19:15:10 +0000 (22:15 +0300)
plugins/auth_internal/init.php

index 4cc4733047b55e2529915f15e0a31e0d1450a087..a6829ac02d276318159e93b5005de30fc79711c5 100644 (file)
@@ -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']));