From 84f9311fd53f5fa58ae55986ece9bfa7dac455c1 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 29 Aug 2019 18:08:43 +0200 Subject: fix: Fix "validate email"-related issues (#2512) * fix: Make sure $disable_aside is initialized There was a warning for an uninitialized variable, hidden in production but visible in development mode. * fix: Allow to delete account when email isn't validated --- app/FreshRSS.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/FreshRSS.php') diff --git a/app/FreshRSS.php b/app/FreshRSS.php index c48ad2093..d472a2147 100644 --- a/app/FreshRSS.php +++ b/app/FreshRSS.php @@ -153,7 +153,9 @@ class FreshRSS extends Minz_FrontController { Minz_Request::is('user', 'validateEmail') || Minz_Request::is('user', 'sendValidationEmail') || Minz_Request::is('user', 'profile') || - Minz_Request::is('auth', 'logout') + Minz_Request::is('user', 'delete') || + Minz_Request::is('auth', 'logout') || + Minz_Request::is('javascript', 'nonce') ); if ($email_not_verified && !$action_is_allowed) { Minz_Request::forward(array( -- cgit v1.2.3