We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 1e2d317b authored by Evan Prodromou's avatar Evan Prodromou

remove action-specific from RequireValidatedEmail

parent 6464c775
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment