From c7a3281a73839590bfa9d8a9e73c41fc35fc2847 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 22 Dec 2023 11:03:32 +0100 Subject: Fix notifications (#5959) The notification about wrong login was not working. Noticed while working on https://github.com/FreshRSS/FreshRSS/pull/5955 This was due to timing of when the notification is retrieved. Simplified code to make the logic easier and more robust. --- app/Controllers/authController.php | 1 - 1 file changed, 1 deletion(-) (limited to 'app/Controllers') diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php index ac3fcb0be..82dfefddd 100644 --- a/app/Controllers/authController.php +++ b/app/Controllers/authController.php @@ -182,7 +182,6 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController { Minz_Request::good(_t('feedback.auth.login.success'), $url); } else { Minz_Log::warning("Password mismatch for user={$username}, nonce={$nonce}, c={$challenge}"); - header('HTTP/1.1 403 Forbidden'); Minz_Session::_param('POST_to_GET', true); //Prevent infinite internal redirect Minz_Request::setBadNotification(_t('feedback.auth.login.invalid')); -- cgit v1.2.3