auth internal: fix login screen warning

This commit is contained in:
Andrew Dolgov 2012-09-03 18:53:19 +04:00
parent 973392b9f5
commit 4e70344bbf
1 changed files with 30 additions and 28 deletions

View File

@ -12,6 +12,7 @@ class Auth_Internal extends Auth_Base {
$result = db_query($this->link, "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";
@ -48,6 +49,7 @@ class Auth_Internal extends Auth_Base {
}
}
}
}
if (get_schema_version($this->link) > 87) {