From: Andrew Dolgov Date: Sat, 30 Mar 2013 06:48:19 +0000 (+0400) Subject: unbreak auth_remote and possibly other auth plugins X-Git-Tag: 1.7.6~143 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=70400171600e00e0f6a313969a385fa236491540;p=tt-rss.git unbreak auth_remote and possibly other auth plugins --- diff --git a/include/functions.php b/include/functions.php index 34f4112b..030d8d50 100644 --- a/include/functions.php +++ b/include/functions.php @@ -582,7 +582,6 @@ function authenticate_user($link, $login, $password, $check_only = false) { if (!SINGLE_USER_MODE) { - $user_id = false; global $pluginhost; @@ -597,6 +596,8 @@ } if ($user_id && !$check_only) { + @session_start(); + $_SESSION["uid"] = $user_id; $result = db_query($link, "SELECT login,access_level,pwd_hash FROM ttrss_users