From 76523693592a58c7b15c2860ad95133f551d86a5 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 5 Oct 2020 19:03:33 +0200 Subject: Minz: Attach a notification to a request (#3208) * Minz: Attach a notification to a request Notifications should be attached to a request, not to a global session. Fix https://github.com/FreshRSS/FreshRSS/pull/3096#issuecomment-654891906 Prepare https://github.com/FreshRSS/FreshRSS/pull/3096 * Rename array * Avoid string constants Implement https://github.com/FreshRSS/FreshRSS/pull/3208#issuecomment-703243863 * Improved logic * Simplify storage https://github.com/FreshRSS/FreshRSS/pull/3208#discussion_r499511213 * Fix notification bug in configuration/system --- app/Controllers/authController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/Controllers/authController.php') diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php index cef8f9d2d..e7bff363e 100644 --- a/app/Controllers/authController.php +++ b/app/Controllers/authController.php @@ -166,10 +166,7 @@ class FreshRSS_auth_Controller extends Minz_ActionController { header('HTTP/1.1 403 Forbidden'); Minz_Session::_param('POST_to_GET', true); //Prevent infinite internal redirect - Minz_View::_param('notification', [ - 'type' => 'bad', - 'content' => _t('feedback.auth.login.invalid'), - ]); + Minz_Request::setBadNotification(_t('feedback.auth.login.invalid')); Minz_Request::forward(['c' => 'auth', 'a' => 'login'], false); return; } -- cgit v1.2.3