aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-12-24 18:44:34 +0100
committerGravatar GitHub <noreply@github.com> 2021-12-24 18:44:34 +0100
commit20c8382c250bc21cb16f04beded665bf137b6bf0 (patch)
tree274c004ef63f9a78095da9da3a91c329fa0ce76b
parent33402355405ce778c1bea1d10c3ca2e9070d6947 (diff)
Fix invalid user (#4081)
#fix https://github.com/FreshRSS/FreshRSS/issues/4080 Initialise the default user to be able to display the error page
-rw-r--r--app/Controllers/authController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php
index 3202b59f2..e48bf39e8 100644
--- a/app/Controllers/authController.php
+++ b/app/Controllers/authController.php
@@ -125,7 +125,8 @@ class FreshRSS_auth_Controller extends Minz_ActionController {
FreshRSS_Context::initUser($username);
if (FreshRSS_Context::$user_conf == null) {
- //We do not test here whether the user exists, so most likely an internal error.
+ // Initialise the default user to be able to display the error page
+ FreshRSS_Context::initUser(FreshRSS_Context::$system_conf->default_user);
Minz_Error::error(403, array(_t('feedback.auth.login.invalid')), false);
return;
}