diff options
| author | 2023-04-20 09:13:59 +0200 | |
|---|---|---|
| committer | 2023-04-20 09:13:59 +0200 | |
| commit | 273b36c54c7bc2b9cf7e6e135bb75528c7c6a08c (patch) | |
| tree | ca9a6e3779a9d82d321c3ddaa7b75a8316fc0603 /app/Controllers/authController.php | |
| parent | 5579dc88abee21adbb3654ea5e4b9941d12af6a6 (diff) | |
Show REMOTE_ADDR in case of HTTP Basic Auth error (#5314)
* Show REMOTE_ADDR in case of HTTP Basic Auth error
https://github.com/FreshRSS/FreshRSS/issues/5300
* Remove obsolete TODO
Diffstat (limited to 'app/Controllers/authController.php')
| -rw-r--r-- | app/Controllers/authController.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php index fa5cb0d53..b54953b1d 100644 --- a/app/Controllers/authController.php +++ b/app/Controllers/authController.php @@ -14,8 +14,6 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController { * - auth_type (default: none) * - unsafe_autologin (default: false) * - api_enabled (default: false) - * - * @todo move unsafe_autologin in an extension. */ public function indexAction(): void { if (!FreshRSS_Auth::hasAccess('admin')) { @@ -77,7 +75,8 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController { break; case 'http_auth': Minz_Error::error(403, array('error' => array(_t('feedback.access.denied'), - ' [HTTP Remote-User=' . htmlspecialchars(httpAuthUser(), ENT_NOQUOTES, 'UTF-8') . ']' + ' [HTTP Remote-User=' . htmlspecialchars(httpAuthUser(), ENT_NOQUOTES, 'UTF-8') . + ' ; Remote IP address=' . ($_SERVER['REMOTE_ADDR'] ?? '') . ']' )), false); break; case 'none': |
