mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 06:11:28 +00:00
more http auth related work, logout still doesn't work
This commit is contained in:
@@ -678,14 +678,10 @@
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$force_logout = $_POST["ForceLogout"];
|
if (!http_authenticate_user($link, false)) {
|
||||||
|
|
||||||
if (!http_authenticate_user($link, $force_logout == "yes")) {
|
|
||||||
if (!http_authenticate_user($link, true)) {
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$_SESSION["uid"] = 1;
|
$_SESSION["uid"] = 1;
|
||||||
$_SESSION["name"] = "admin";
|
$_SESSION["name"] = "admin";
|
||||||
|
|||||||
10
prefs.php
10
prefs.php
@@ -51,20 +51,10 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr><tr><td class="welcomePrompt">
|
</tr><tr><td class="welcomePrompt">
|
||||||
<? if (!SINGLE_USER_MODE) { ?>
|
<? if (!SINGLE_USER_MODE) { ?>
|
||||||
<? if (USE_HTTP_AUTH) { ?>
|
|
||||||
<table align="right"><tr>
|
|
||||||
<td class="httpWelcomePrompt">Hello, <b> <?= $_SESSION["name"] ?></b></td>
|
|
||||||
<td><form action="tt-rss.php" method="POST">
|
|
||||||
<input type="hidden" name="ForceLogout" value="yes">
|
|
||||||
<input type="submit" class="button" value="Logout">
|
|
||||||
</form>
|
|
||||||
</td></tr></table>
|
|
||||||
<? } else { ?>
|
|
||||||
Hello, <b><?= $_SESSION["name"] ?></b>
|
Hello, <b><?= $_SESSION["name"] ?></b>
|
||||||
(<a href="logout.php">Logout</a>)
|
(<a href="logout.php">Logout</a>)
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</td>
|
</td>
|
||||||
<? } ?>
|
|
||||||
</tr></table>
|
</tr></table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
10
tt-rss.php
10
tt-rss.php
@@ -64,20 +64,10 @@
|
|||||||
|
|
||||||
</tr><tr><td class="welcomePrompt">
|
</tr><tr><td class="welcomePrompt">
|
||||||
<? if (!SINGLE_USER_MODE) { ?>
|
<? if (!SINGLE_USER_MODE) { ?>
|
||||||
<? if (USE_HTTP_AUTH) { ?>
|
|
||||||
<table align="right"><tr>
|
|
||||||
<td class="httpWelcomePrompt">Hello, <b> <?= $_SESSION["name"] ?></b></td>
|
|
||||||
<td><form action="tt-rss.php" method="POST">
|
|
||||||
<input type="hidden" name="ForceLogout" value="yes">
|
|
||||||
<input type="submit" class="button" value="Logout">
|
|
||||||
</form>
|
|
||||||
</td></tr></table>
|
|
||||||
<? } else { ?>
|
|
||||||
Hello, <b><?= $_SESSION["name"] ?></b>
|
Hello, <b><?= $_SESSION["name"] ?></b>
|
||||||
(<a href="logout.php">Logout</a>)
|
(<a href="logout.php">Logout</a>)
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</td>
|
</td>
|
||||||
<? } ?>
|
|
||||||
</tr></table>
|
</tr></table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user