From: Evan Prodromou Date: Fri, 25 Feb 2011 20:56:21 +0000 (-0800) Subject: allow access to confirm first for not-logged-in users X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2b995c943f8548cbdc427f07c7e54790e5ea4672;p=quix0rs-gnu-social.git allow access to confirm first for not-logged-in users --- 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; + } }