Skip to content

Commit

Permalink
fixed misused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lyarenei committed Aug 28, 2017
1 parent 8bf256c commit f1d2eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/db/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function AddUser($login, $passwd, $email)
{
$hashPasswd = password_hash($passwd, PASSWORD_DEFAULT);
$query = "INSERT INTO `Users` (`Login`, `Pass`, `Email`) VALUES (?,?,?)";
$variables = array($login, $passwd, $email);
$variables = array($login, $hashPasswd, $email);
$this->db->Query($query, "sss", $variables);
}

Expand Down

0 comments on commit f1d2eda

Please sign in to comment.