mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 17:01:29 +00:00
fix http basic authentication
This commit is contained in:
16
tt-rss.php
16
tt-rss.php
@@ -16,7 +16,8 @@
|
||||
exit;
|
||||
}
|
||||
} else {
|
||||
authenticate_user($link);
|
||||
$force_logout = $_POST["ForceLogout"];
|
||||
http_authenticate_user($link, $force_logout == "yes");
|
||||
}
|
||||
} else {
|
||||
$_SESSION["uid"] = 1;
|
||||
@@ -77,7 +78,18 @@
|
||||
|
||||
</tr><tr><td class="welcomePrompt">
|
||||
<? if (!SINGLE_USER_MODE) { ?>
|
||||
Hello, <b><?= $_SESSION["name"] ?></b> (<a href="logout.php">Logout</a>)</td>
|
||||
<? 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>(<a href="logout.php">Logout</a>)
|
||||
<? } ?>
|
||||
</td>
|
||||
<? } ?>
|
||||
</tr></table>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user