]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
remember to send confirmation email for registration
authorEvan Prodromou <evan@status.net>
Fri, 10 Jun 2011 21:46:35 +0000 (17:46 -0400)
committerEvan Prodromou <evan@status.net>
Fri, 10 Jun 2011 21:46:35 +0000 (17:46 -0400)
plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php
plugins/DomainStatusNetwork/actions/globalregister.php

index a923ac4c30fd352ad64583f1ec6052f321c73f64..e11cb082d6dc0a470b8c94428df25fc3f215bee7 100644 (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);
 
index ed9bfc3c2c493712262bfbf58d5e1f6d6c8d1bad..1e34261099a80b7e1ed2be1d05652d6a887b000e 100644 (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());