Skip to content

A free, self-hostable news aggregator…

Fix email validation and allow error page for unverified email users (#8582)

Inverle77372239b0b8
diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php
index e634c3992..c575c5831 100644
--- a/app/Controllers/userController.php
+++ b/app/Controllers/userController.php
@@ -577,6 +577,9 @@ class FreshRSS_user_Controller extends FreshRSS_ActionController {
$this->view->_layout('simple');
$username = Minz_Request::paramString('username');
+ if (FreshRSS_Auth::hasAccess()) {
+ $username = Minz_User::name() ?? '';
+ }
$token = Minz_Request::paramString('token');
if ($username !== '') {
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 0d433dc2b..a696dcddd 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -165,7 +165,8 @@ class FreshRSS extends Minz_FrontController {
Minz_Request::is('user', 'delete') ||
Minz_Request::is('auth', 'logout') ||
Minz_Request::is('feed', 'actualize') ||
- Minz_Request::is('javascript', 'nonce')
+ Minz_Request::is('javascript', 'nonce') ||
+ Minz_Request::is('error', 'index')
);
if ($email_not_verified && !$action_is_allowed) {
Minz_Request::forward([