Merge branch 'master' of https://git.williammiceli.systems/williammiceli-educational/CS4430-Project
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
$connection = new PDO("mysql:host=$server;dbname=$database", $username, $password);
|
||||
$connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
echo "Connected successfully";
|
||||
if(count($_POST) > 0){
|
||||
if($_POST["Username"] != "" && $_POST["Password"] != ""){
|
||||
$matchingUsers = $connection->query("SELECT COUNT(*) FROM login WHERE username = '".$_POST["Username"]."' and pword = '".$_POST["Password"]."'");
|
||||
if($matchingUsers > 0){
|
||||
// User has been authenticated; set user as logged in
|
||||
|
||||
Reference in New Issue
Block a user