remove action-specific from RequireValidatedEmail
This commit is contained in:
parent
6464c77505
commit
1e2d317b9c
@ -125,28 +125,6 @@ class RequireValidatedEmailPlugin extends Plugin
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Event handler for registration attempts; rejects the registration
|
||||
* if email field is missing.
|
||||
*
|
||||
* @param Action $action Action being executed
|
||||
*
|
||||
* @return bool hook result code
|
||||
*/
|
||||
function onStartRegistrationTry($action)
|
||||
{
|
||||
$email = $action->trimmed('email');
|
||||
|
||||
if (empty($email)) {
|
||||
$action->showForm(_m('You must provide an email address to register.'));
|
||||
return false;
|
||||
}
|
||||
|
||||
// Default form will run address format validation and reject if bad.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Event handler for registration attempts; rejects the registration
|
||||
* if email field is missing.
|
||||
|
Loading…
Reference in New Issue
Block a user