email register is a login action
This commit is contained in:
parent
45b0c5ef10
commit
e119b295c0
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user