Merge branch '1.0.x' into testing
This commit is contained in:
commit
527ed62f3f
@ -241,7 +241,7 @@ class DomainStatusNetworkPlugin extends Plugin
|
|||||||
return !empty($user);
|
return !empty($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
static function registerEmail($email, $sendWelcome, $template)
|
static function registerEmail($email)
|
||||||
{
|
{
|
||||||
$domain = self::toDomain($email);
|
$domain = self::toDomain($email);
|
||||||
|
|
||||||
|
@ -81,7 +81,8 @@ class GlobalregisterAction extends GlobalApiAction
|
|||||||
function handle($argarray=null)
|
function handle($argarray=null)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
DomainStatusNetworkPlugin::registerEmail($this->email, true);
|
$confirm = DomainStatusNetworkPlugin::registerEmail($this->email);
|
||||||
|
EmailRegistrationPlugin::sendConfirmEmail($confirm);
|
||||||
$this->showSuccess();
|
$this->showSuccess();
|
||||||
} catch (ClientException $e) {
|
} catch (ClientException $e) {
|
||||||
$this->showError($e->getMessage(), $e->getCode());
|
$this->showError($e->getMessage(), $e->getCode());
|
||||||
|
Loading…
Reference in New Issue
Block a user