unbreak auth_remote and possibly other auth plugins
This commit is contained in:
parent
c93f98e123
commit
7040017160
|
@ -582,7 +582,6 @@
|
||||||
function authenticate_user($link, $login, $password, $check_only = false) {
|
function authenticate_user($link, $login, $password, $check_only = false) {
|
||||||
|
|
||||||
if (!SINGLE_USER_MODE) {
|
if (!SINGLE_USER_MODE) {
|
||||||
|
|
||||||
$user_id = false;
|
$user_id = false;
|
||||||
|
|
||||||
global $pluginhost;
|
global $pluginhost;
|
||||||
|
@ -597,6 +596,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user_id && !$check_only) {
|
if ($user_id && !$check_only) {
|
||||||
|
@session_start();
|
||||||
|
|
||||||
$_SESSION["uid"] = $user_id;
|
$_SESSION["uid"] = $user_id;
|
||||||
|
|
||||||
$result = db_query($link, "SELECT login,access_level,pwd_hash FROM ttrss_users
|
$result = db_query($link, "SELECT login,access_level,pwd_hash FROM ttrss_users
|
||||||
|
|
Loading…
Reference in New Issue