1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-02 02:19:16 +00:00

merge tweaks to ALLOW_REMOTE_USER_AUTH functionality from Erick Rudiak

This commit is contained in:
Andrew Dolgov
2008-08-01 04:47:16 +01:00
parent 8dccabedae
commit 73f5f114ec
2 changed files with 6 additions and 4 deletions

View File

@@ -1682,11 +1682,11 @@
$pwd_hash2 = encrypt_password($password, $login);
if (defined('ALLOW_REMOTE_USER_AUTH') && ALLOW_REMOTE_USER_AUTH
&& $_SERVER["REMOTE_USER"]) {
&& $_SERVER["REMOTE_USER"] && $login != "admin") {
$login = db_escape_string($_SERVER["REMOTE_USER"]);
$query = "SELECT id,login,access_level
$query = "SELECT id,login,access_level,pwd_hash
FROM ttrss_users WHERE
login = '$login'";