diff options
author | Andrew Dolgov <[email protected]> | 2013-04-17 21:19:00 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-17 21:19:00 +0400 |
commit | e441b5837b84f8313e506a3d1b087f269f4a9fb3 (patch) | |
tree | 5d7c131538588eebb3813a9f002542e7db072a55 /plugins/auth_internal/init.php | |
parent | d9c85e0f112034ca3e3f4d34213f6dcccf9d54e1 (diff) |
initial
Diffstat (limited to 'plugins/auth_internal/init.php')
-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"; |