Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
Solved typo error.
Browse files Browse the repository at this point in the history
  • Loading branch information
aleexnl committed Dec 17, 2020
1 parent ac55870 commit 16821e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
if (!$has_errors) {
$password = hash('sha256', filter_var($_POST['userPass'], FILTER_SANITIZE_STRING)); // Sanitize string anmd encrypt in SHA256.
$query = $bd -> prepare("SELECT * FROM users WHERE email = ? AND `password` = ?"); // Prepare the query.
$query = $bd -> prepare("SELECT * FROM Users WHERE email = ? AND `password` = ?"); // Prepare the query.
$query->bindParam(1, $email); // Bind parameters.
$query->bindParam(2, $password);
$query->execute(); // Execute the query
Expand Down

0 comments on commit 16821e5

Please sign in to comment.