summaryrefslogtreecommitdiff
path: root/plugins/auth_internal
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-06-20 22:15:10 +0300
committerAndrew Dolgov <[email protected]>2018-06-20 22:15:10 +0300
commitadd9b37ab5eba852d953676540ccd860cc8d0447 (patch)
treeb881e16f20add460502e146362cd0c0b4cb9229e /plugins/auth_internal
parent310c18e6bbd8e7f78a0a45f0501cb1dc6fab2159 (diff)
auth_internal: load Base32 using proper namespace
Diffstat (limited to 'plugins/auth_internal')
-rw-r--r--plugins/auth_internal/init.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/auth_internal/init.php b/plugins/auth_internal/init.php
index 4cc473304..a6829ac02 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']));