authenticate_user: check for missing login when selecting salt
This commit is contained in:
parent
9de4bb4898
commit
5081319e23
|
@ -715,6 +715,10 @@
|
||||||
$result = db_query($link, "SELECT salt FROM ttrss_users WHERE
|
$result = db_query($link, "SELECT salt FROM ttrss_users WHERE
|
||||||
login = '$login'");
|
login = '$login'");
|
||||||
|
|
||||||
|
if (db_num_rows($result) != 1) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$salt = db_fetch_result($result, 0, "salt");
|
$salt = db_fetch_result($result, 0, "salt");
|
||||||
|
|
||||||
if ($salt == "") {
|
if ($salt == "") {
|
||||||
|
|
Loading…
Reference in New Issue