From e119b295c0857c74bfea305bbc6c47ee78140642 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 17 Apr 2011 18:29:10 -0400 Subject: [PATCH] email register is a login action --- plugins/EmailRegistration/EmailRegistrationPlugin.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/EmailRegistration/EmailRegistrationPlugin.php b/plugins/EmailRegistration/EmailRegistrationPlugin.php index e23cb6dc34..61888ef3d0 100644 --- a/plugins/EmailRegistration/EmailRegistrationPlugin.php +++ b/plugins/EmailRegistration/EmailRegistrationPlugin.php @@ -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', -- 2.39.5