aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/authController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-10-05 19:03:33 +0200
committerGravatar GitHub <noreply@github.com> 2020-10-05 19:03:33 +0200
commit76523693592a58c7b15c2860ad95133f551d86a5 (patch)
treea0fc3605396921dbbb225b2ec04559a014d6f156 /app/Controllers/authController.php
parent2f88b267805c71e9859c41bb50c348b1566cfc06 (diff)
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
Diffstat (limited to 'app/Controllers/authController.php')
-rw-r--r--app/Controllers/authController.php5
1 files changed, 1 insertions, 4 deletions
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;
}