mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 19:07:01 +00:00
fix for the "Cannot modify header information - headers already sent by .../header.php" warning on login page
This commit is contained in:
parent
1316fcf6d9
commit
4c92934032
1 changed files with 5 additions and 6 deletions
|
|
@ -3,19 +3,18 @@ require_once("partials/base.php");
|
|||
|
||||
$title = "Login - ".$title;
|
||||
|
||||
include 'partials/header.php';
|
||||
?>
|
||||
|
||||
<?php
|
||||
// Password comes from libs/session.php
|
||||
if (isset($_SESSION['password'])) {
|
||||
if ($_SESSION['password'] == $password) {
|
||||
header("Location: .");
|
||||
include 'partials/header.php';
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
else { ?>
|
||||
else {
|
||||
include 'partials/header.php';
|
||||
?>
|
||||
<center>
|
||||
<h2>Enter password or TOTP</h2>
|
||||
<form method="post" action="" id="login_form">
|
||||
|
|
|
|||
Loading…
Reference in a new issue