From: Francesco Turco Date: Fri, 22 Dec 2017 11:29:25 +0000 (+0100) Subject: fix two-factor authenticaton X-Git-Tag: 18.8~94^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1a7277570bb19d0a5ebfa4abdac1fbce1d1b955f;p=tt-rss.git fix two-factor authenticaton --- diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index fac4b941..1eb28ba2 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -887,7 +887,7 @@ class Pref_Prefs extends Handler_Protected { if ($authenticator->check_password($_SESSION["uid"], $password)) { - $sth = $this->pdo->query("SELECT salt + $sth = $this->pdo->prepare("SELECT salt FROM ttrss_users WHERE id = ?"); $sth->execute([$_SESSION['uid']]);