added error handling support
parent
5f79a49986
commit
4bd652a6e8
|
@ -19,7 +19,19 @@
|
||||||
<h1> <center>ThreadR</center> </h1>
|
<h1> <center>ThreadR</center> </h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-2 round-border">
|
<div class="item-2 round-border">
|
||||||
<p>Login:</p>
|
<p>
|
||||||
|
<?php
|
||||||
|
if (isset($_GET['error'])){
|
||||||
|
if (error == "credentials"){
|
||||||
|
echo "Invalid credentials. Try again:";
|
||||||
|
}
|
||||||
|
if (error == "session"){
|
||||||
|
echo "Your session was closed. We are sorry for the inconvenience.";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
echo "Login:";
|
||||||
|
}
|
||||||
|
?></p>
|
||||||
<form action="%CONTENT_DIR%/login/redirect.php" method="post">
|
<form action="%CONTENT_DIR%/login/redirect.php" method="post">
|
||||||
<input type="text" name="username" maxlength="20" placeholder="Username" />
|
<input type="text" name="username" maxlength="20" placeholder="Username" />
|
||||||
<input type="password" name="password" maxlength="256" placeholder="Password" />
|
<input type="password" name="password" maxlength="256" placeholder="Password" />
|
||||||
|
@ -30,7 +42,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="item-3">
|
<div class="item-3">
|
||||||
<p></p>
|
<p></p>
|
||||||
<a href="%CONTENT_DIR%/signup/"> <button> Registrieren </button> </a>
|
<a href="%CONTENT_DIR%/signup/"> <button> Register </button> </a>
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="item-4">
|
<!-- <div class="item-4">
|
||||||
|
|
Loading…
Reference in New Issue