login functional but no disconnect ayy.

This commit is contained in:
quoije
2022-02-27 23:33:57 -05:00
parent 89ed03cb2e
commit b500010935
11 changed files with 117 additions and 146 deletions
+3 -3
View File
@@ -11,16 +11,16 @@ $rus = mysqli_query($conn, $user_sql);
$rps = mysqli_query($conn, $pass_sql);
if ($rus->num_rows > 0) {
echo "** found user **";
while($row = $rps->fetch_assoc()) {
$oof = password_verify($cat, $row["pass"]);
if ($oof)
{
jsonLogin("oof","moof","1234");
setcookie("user", $dog, time() + (86400 * 30), "/");
setcookie("pass", $row["pass"], time() + (86400 * 30), "/");
echo "redirect";
}
else
{
echo "***** nope";
}
}
} else {