diff options
| author | 2013-12-28 01:24:54 +0100 | |
|---|---|---|
| committer | 2013-12-28 01:24:54 +0100 | |
| commit | 45b2decce03e218fe7ad66479491123ce398ab1f (patch) | |
| tree | 418b35c5907569318eb209b24f01a03b0f86627d /lib/lib_rss.php | |
| parent | 0842be443489690e50636b55aaceac6534645538 (diff) | |
HTTP Auth user
https://github.com/marienfressinaud/FreshRSS/issues/126
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index c7698b5c5..a27ef171a 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -188,3 +188,7 @@ function usernameFromPath($userPath) { function listUsers() { return array_map('usernameFromPath', glob(DATA_PATH . '/*_user.php')); } + +function httpAuthUser() { + return isset($_SERVER['REMOTE_USER']) ? $_SERVER['REMOTE_USER'] : ''; +} |
