authenticate_user: check for missing login when selecting salt

This commit is contained in:
Andrew Dolgov 2012-01-27 12:27:27 +04:00
parent 9de4bb4898
commit 5081319e23

View file

@ -715,6 +715,10 @@
$result = db_query($link, "SELECT salt FROM ttrss_users WHERE
login = '$login'");
if (db_num_rows($result) != 1) {
return false;
}
$salt = db_fetch_result($result, 0, "salt");
if ($salt == "") {