email register is a login action

This commit is contained in:
Evan Prodromou 2011-04-17 18:29:10 -04:00
parent 45b0c5ef10
commit e119b295c0

View 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',