1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-24 11:56:36 +02:00

auth internal: fix otp check clause

This commit is contained in:
Andrew Dolgov 2012-09-14 02:54:32 +04:00
parent 1835f145a8
commit 72d0e9b33f

View File

@ -9,7 +9,7 @@ class Auth_Internal extends Auth_Base {
$otp = db_escape_string($_REQUEST["otp"]);
if (get_schema_version($this->link) > 96) {
if (version_compare(PHP_VERSION, '5.3.0') >= 0 && !defined('AUTH_DISABLE_OTP') || !AUTH_DISABLE_OTP) {
if (version_compare(PHP_VERSION, '5.3.0') >= 0 && (!defined('AUTH_DISABLE_OTP') || !AUTH_DISABLE_OTP)) {
$result = db_query($this->link, "SELECT otp_enabled,salt FROM ttrss_users WHERE
login = '$login'");