Restyle Broken login #123

Closed
restyled-io[bot] wants to merge 6 commits from restyled/BrokenLogin into main
Showing only changes of commit 38ad588be3 - Show all commits

View File

@@ -12,10 +12,13 @@
$sql = $db->prepare("SELECT uuid FROM users WHERE uuid=:uuid"); $sql = $db->prepare("SELECT uuid FROM users WHERE uuid=:uuid");
$sql->bindParam(':uuid', $uuid); $sql->bindParam(':uuid', $uuid);
$sql->execute(); $sql->execute();
$sql->setFetchMode(PDO::FETCH_ASSOC);
$result = $sql->fetchAll();
} catch (PDOException $e) { } catch (PDOException $e) {
$alert = array("danger", "Error during check for user record: " . $e->getMessage()); $alert = array("danger", "Error during check for user record: " . $e->getMessage());
die();
} }
if (empty($sql)) { if (empty($result)) {
return false; return false;
} else { } else {
return true; return true;