mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-21 15:21:28 +00:00
auth internal: fix login screen warning
This commit is contained in:
@@ -12,6 +12,7 @@ class Auth_Internal extends Auth_Base {
|
|||||||
$result = db_query($this->link, "SELECT otp_enabled,salt FROM ttrss_users WHERE
|
$result = db_query($this->link, "SELECT otp_enabled,salt FROM ttrss_users WHERE
|
||||||
login = '$login'");
|
login = '$login'");
|
||||||
|
|
||||||
|
if (db_num_rows($result) > 0) {
|
||||||
require_once "lib/otphp/vendor/base32.php";
|
require_once "lib/otphp/vendor/base32.php";
|
||||||
require_once "lib/otphp/lib/otp.php";
|
require_once "lib/otphp/lib/otp.php";
|
||||||
require_once "lib/otphp/lib/totp.php";
|
require_once "lib/otphp/lib/totp.php";
|
||||||
@@ -48,6 +49,7 @@ class Auth_Internal extends Auth_Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (get_schema_version($this->link) > 87) {
|
if (get_schema_version($this->link) > 87) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user