mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:15:55 +00:00
optional login form/http basic auth support
This commit is contained in:
10
prefs.php
10
prefs.php
@@ -8,8 +8,14 @@
|
||||
|
||||
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||
|
||||
// $_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder
|
||||
// $_SESSION["name"] = PLACEHOLDER_NAME;
|
||||
if (!USE_HTTP_AUTH) {
|
||||
if (!$_SESSION["uid"]) {
|
||||
header("Location: login.php");
|
||||
exit;
|
||||
}
|
||||
} else {
|
||||
authenticate_user($link);
|
||||
}
|
||||
|
||||
initialize_user_prefs($link, $_SESSION["uid"]);
|
||||
// FIXME this needs to be moved somewhere after user creation
|
||||
|
||||
Reference in New Issue
Block a user