Repository navigation
Automatic trusted_sources during install - #5358
Conversation
|
OK: Still an issue:
There should be at least an information that these data has to manually changed by the admin. Thanks for the quick response to my issue. |
|
Could you please try again @CDaxi ? |
Co-authored-by: Luc SANCHEZ <[email protected]>
Co-authored-by: Luc SANCHEZ <[email protected]>
|
Installation is working fine now. PHP Fatal error: Uncaught TypeError: FreshRSS_user_Controller::createUser(): Argument #2 ($email) must be of type string, null given, called in /var/www/FreshRSS/app/Models/Auth.php on line 83 and defined in /var/www/FreshRSS/app/Controllers/userController.php:215\nStack trace:\n#0 /var/www/FreshRSS/app/Models/Auth.php(83): FreshRSS_user_Controller::createUser()\n#1 /var/www/FreshRSS/app/Models/Auth.php(36): FreshRSS_Auth::accessControl()\n#2 /var/www/FreshRSS/app/FreshRSS.php(75): FreshRSS_Auth::init()\n#3 /var/www/FreshRSS/app/FreshRSS.php(48): FreshRSS::initAuth()\n#4 /var/www/FreshRSS/p/i/index.php(55): FreshRSS->init()\n#5 {main}\n thrown in /var/www/FreshRSS/app/Controllers/userController.php on line 215 The user can not be created because there is null handed over at createUser at argument 2. After adding "HTTP_REMOTE_EMAIL" in config.php at "http_auth_auto_register_email_field", the user can be created. Perhaps there can also be a check if $_SERVER['HTTP_REMOTE_EMAIL'] is present and be automatically set in the config? |
|
Thanks for the tests and feedback. The null exception should be fixed. The e-mail is not actually used to anything for this type of login. Could you please try again? I would like in the current PR to only fix the (more urgent) regressions, while new features and enhancements can be done in a future one. |
|
Auth works now like a charm. Thanks a lot for the quick response and fixes. Great job. 👏 |
|
Thanks for the feedback! Feel free to collect your ideas of improvements into a new issue, if sufficiently relevant |
* Rework trusted proxies Fix #5502 Follow-up of #3226 New environment variable `TRUSTED_PROXY`: set to 0 to disable, or to a list of trusted IP ranges compatible with https://httpd.apache.org/docs/current/mod/mod_remoteip.html#remoteiptrustedproxy New internal environment variable `CONN_REMOTE_ADDR` to remember the true IP address of the connection (e.g. last proxy), even when using mod_remoteip. Current working setups should not observe any significant change. * Minor whitespace * Safer trusted sources during install Rework of #5358 #5357 * Minor readme
Fix #5357
Fix also the fact that http_auth was broken during install.
And make the
checkCIDR()robust when using IP addresses without a range suffix (was previously generating warnings).