1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-27 09:21:29 +00:00

http user auth, password changer in preferences

This commit is contained in:
Andrew Dolgov
2005-11-18 07:04:32 +01:00
parent 99620a7fe0
commit 1c7f75ed2c
7 changed files with 93 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
<?
session_start();
require_once "version.php";
require_once "config.php";
require_once "db-prefs.php";
@@ -8,9 +8,10 @@
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
$_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder
$_SESSION["name"] = PLACEHOLDER_NAME;
authenticate_user($link);
// $_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder
// $_SESSION["name"] = PLACEHOLDER_NAME;
initialize_user_prefs($link, $_SESSION["uid"]);
// FIXME this needs to be moved somewhere after user creation