Password should be PDO::PARAM_STR, not PDO::PARAM_INT
This commit is contained in:
parent
381628e571
commit
5c64d87304
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ if ($action == "approve") {
|
|||
$stmt->execute();
|
||||
}
|
||||
$stmt = $smarty->dbh()->prepare("UPDATE {$opt["table_prefix"]}users SET approved = 1, password = {$opt["password_hasher"]}(?) WHERE userid = ?");
|
||||
$stmt->bindParam(1, $pwd, PDO::PARAM_INT);
|
||||
$stmt->bindParam(1, $pwd, PDO::PARAM_STR);
|
||||
$stmt->bindValue(2, (int) $_GET["userid"], PDO::PARAM_INT);
|
||||
$stmt->execute();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue