From 2b995c943f8548cbdc427f07c7e54790e5ea4672 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 25 Feb 2011 12:56:21 -0800 Subject: [PATCH] allow access to confirm first for not-logged-in users --- .../RequireValidatedEmailPlugin.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php b/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php index e6508adc7e..b6bd6f7e5f 100644 --- a/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php +++ b/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php @@ -285,4 +285,13 @@ class RequireValidatedEmailPlugin extends Plugin } return true; } + + function onLoginAction($action, &$login) + { + if ($action == 'confirmfirstemail') { + $login = true; + return false; + } + return true; + } }