1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 12:05:55 +00:00
This commit is contained in:
Andrew Dolgov
2013-04-17 21:19:00 +04:00
parent d9c85e0f11
commit e441b5837b
4 changed files with 118 additions and 14 deletions

View File

@@ -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";