diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/auth_internal/init.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/auth_internal/init.php b/plugins/auth_internal/init.php index c6f075036..33f90d4b1 100644 --- a/plugins/auth_internal/init.php +++ b/plugins/auth_internal/init.php @@ -24,10 +24,12 @@ class Auth_Internal extends Plugin implements IAuthModule { if (get_schema_version() > 96) { if (!defined('AUTH_DISABLE_OTP') || !AUTH_DISABLE_OTP) { + $result = db_query("SELECT otp_enabled,salt FROM ttrss_users WHERE login = '$login'"); if (db_num_rows($result) > 0) { + require_once "lib/otphp/vendor/base32.php"; require_once "lib/otphp/lib/otp.php"; require_once "lib/otphp/lib/totp.php"; |