diff options
| author | 2021-08-14 12:22:42 +0200 | |
|---|---|---|
| committer | 2021-08-14 12:22:42 +0200 | |
| commit | 7d83321286efc37162521f4302cf17f03c317020 (patch) | |
| tree | 4306a63572b04de0bc94e4ced0fff3d0c23866ed /app/install.php | |
| parent | 92ae9c89a4356abc94f2ec5c96a1b783f933fb18 (diff) | |
Better catch when a user does not exists (#3751)
#fix https://github.com/FreshRSS/FreshRSS/issues/3735
Before, we were relying on an exception during the first stages of user initalisation. Now the check is explicit and cleaner, producing a more appropriate HTTP response for the API.
Diffstat (limited to 'app/install.php')
| -rw-r--r-- | app/install.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/install.php b/app/install.php index 11f691b91..8e3d857a7 100644 --- a/app/install.php +++ b/app/install.php @@ -71,7 +71,7 @@ function saveStep1() { // First, we try to get previous configurations FreshRSS_Context::initSystem(); - FreshRSS_Context::initUser(FreshRSS_Context::$system_conf->default_user); + FreshRSS_Context::initUser(FreshRSS_Context::$system_conf->default_user, false); // Then, we set $_SESSION vars Minz_Session::_params([ |
