Restyle Broken login #123

Closed
restyled-io[bot] wants to merge 6 commits from restyled/BrokenLogin into main
2 changed files with 5 additions and 2 deletions

View File

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

View File

@@ -1,7 +1,7 @@
<footer class="footer mt-auto py-3">
<div class="text-center text-muted">
<?php
echo($_ENV['APP_NAME'] . " " . get_version() . ".<br>");
echo($_ENV['APP_NAME'] . " " . get_version() . "<br>");
if ($_ENV['APP_NAME'] != "FHeD") {
echo("Powered by FHeD.");
};