remember to send confirmation email for registration

This commit is contained in:
Evan Prodromou 2011-06-10 17:46:35 -04:00
parent c227045975
commit f294ed0091
2 changed files with 3 additions and 2 deletions

View File

@ -241,7 +241,7 @@ class DomainStatusNetworkPlugin extends Plugin
return !empty($user);
}
static function registerEmail($email, $sendWelcome, $template)
static function registerEmail($email)
{
$domain = self::toDomain($email);

View File

@ -81,7 +81,8 @@ class GlobalregisterAction extends GlobalApiAction
function handle($argarray=null)
{
try {
DomainStatusNetworkPlugin::registerEmail($this->email, true);
$confirm = DomainStatusNetworkPlugin::registerEmail($this->email);
EmailRegistrationPlugin::sendConfirmEmail($confirm);
$this->showSuccess();
} catch (ClientException $e) {
$this->showError($e->getMessage(), $e->getCode());