]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow access to confirm first for not-logged-in users
authorEvan Prodromou <evan@status.net>
Fri, 25 Feb 2011 20:56:21 +0000 (12:56 -0800)
committerEvan Prodromou <evan@status.net>
Fri, 25 Feb 2011 20:56:21 +0000 (12:56 -0800)
plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php

index e6508adc7eaab554865c57a01e3d43df5a3d9879..b6bd6f7e5fbeae4bc8c47ca44e22652c2e8fd181 100644 (file)
@@ -285,4 +285,13 @@ class RequireValidatedEmailPlugin extends Plugin
         }
         return true;
     }
+
+    function onLoginAction($action, &$login)
+    {
+        if ($action == 'confirmfirstemail') {
+            $login = true;
+            return false;
+        }
+        return true;
+    }
 }