added an alert message for false credentials
This commit is contained in:
parent
0055c8ef85
commit
39d0d0306b
3 changed files with 12 additions and 12 deletions
|
|
@ -62,10 +62,10 @@ class Database {
|
||||||
|
|
||||||
header("Location: /profile");
|
header("Location: /profile");
|
||||||
} else {
|
} else {
|
||||||
echo "Anmeldung fehlgeschlagen!";
|
echo '<script>alert("Anmeldung fehlgeschlagen!");</script>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo "Anmeldung fehlgeschlagen!";
|
echo '<script>alert("Anmeldung fehlgeschlagen!");</script>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php require ('partials/head.php') ?>
|
<?php require ('partials/head.php') ?>
|
||||||
<?php require ('partials/nav.php') ?>
|
<?php require ('partials/nav.php') ?>
|
||||||
<main>
|
<main class="container" style="display: flex;">
|
||||||
<div class="mx-auto max-w-7xl py-6 sm:px-6 lg:px-8">
|
<div>
|
||||||
<h1 class="text-2xl font-bold">Unauthorized</h1>
|
<h1>Unauthorized</h1>
|
||||||
<p class="mt-4">
|
<p class="mt-4">
|
||||||
<a href="/" class="text-blue underline">Go back home.</a>
|
<a href="/">Go back home.</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php require ('partials/head.php') ?>
|
<?php require ('partials/head.php') ?>
|
||||||
<?php require ('partials/nav.php') ?>
|
<?php require ('partials/nav.php') ?>
|
||||||
<?php require ('partials/banner.php') ?>
|
<?php require ('partials/banner.php') ?>
|
||||||
<main>
|
<main class="container" style="display: flex; text-align: center;">
|
||||||
<div class="mx-auto max-w-7xl py-6 sm:px-6 lg:px-8">
|
<div >
|
||||||
<h1 class="text-2xl font-bold">Sorry. Page Not Found.</h1>
|
<h1 >Sorry. Page Not Found.</h1>
|
||||||
<p class="mt-4">
|
<p >
|
||||||
<a href="/" class="text-blue underline">Go back home.</a>
|
<a href="/" >Go back home.</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue