otpenable: use pdo prepare()

This commit is contained in:
Andrew Dolgov 2017-12-03 09:10:14 +03:00
parent 731ecac530
commit e4291ba12f
1 changed files with 1 additions and 1 deletions

View File

@ -888,7 +888,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']]);