From: Evan Prodromou Date: Sun, 17 Apr 2011 22:29:10 +0000 (-0400) Subject: email register is a login action X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e119b295c0857c74bfea305bbc6c47ee78140642;p=quix0rs-gnu-social.git email register is a login action --- 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',