]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
email register is a login action
authorEvan Prodromou <evan@status.net>
Sun, 17 Apr 2011 22:29:10 +0000 (18:29 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 17 Apr 2011 22:29:10 +0000 (18:29 -0400)
plugins/EmailRegistration/EmailRegistrationPlugin.php

index e23cb6dc34e93f7b7324699ff5b9f402d313eb1a..61888ef3d0ba31b443318c3ff17f52b18cebb5ed 100644 (file)
@@ -71,6 +71,15 @@ class EmailRegistrationPlugin extends Plugin
         return true;
     }
 
+    function onLoginAction($action, &$login)
+    {
+        if ($action == 'emailregister') {
+            $login = true;
+            return false;
+        }
+        return true;
+    }
+
     function onPluginVersion(&$versions)
     {
         $versions[] = array('name' => 'EmailRegistration',