asdf
This commit is contained in:
parent
337e662705
commit
00f4d245ef
@ -19,7 +19,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$_SESSION['user_isAdmin'] = $user_isAdmin;
|
||||
|
||||
// Redirect to the main domain after successful login
|
||||
header('Location: http://watch.twip-network.org');
|
||||
header('Location: / ');
|
||||
exit();
|
||||
} else {
|
||||
echo "Invalid email or password.";
|
||||
@ -31,7 +31,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
?>
|
||||
|
||||
<h2>Login</h2>
|
||||
<form action="login.php" method="post">
|
||||
<form action="" method="post">
|
||||
<input type="email" name="email" id="email-field" placeholder="E-Mail" required>
|
||||
<input type="password" name="password" id="password-field" pattern=".{3,32}" placeholder="Password" required>
|
||||
<input type="submit" name="login" value="Login">
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
session_start();
|
||||
session_destroy();
|
||||
header('Location: /');
|
||||
header('Location: /login');
|
||||
exit();
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user