authenticate_user: check for missing login when selecting salt
This commit is contained in:
parent
9de4bb4898
commit
5081319e23
1 changed files with 4 additions and 0 deletions
|
@ -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 == "") {
|
||||
|
|
Loading…
Reference in a new issue