mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Fix unit tests
This commit is contained in:
@@ -546,12 +546,8 @@ class Edit extends \Alchemy\Phrasea\Helper\Helper
|
||||
$mailOldAddress = MailSuccessEmailUpdate::create($this->app, $oldReceiver, null, sprintf(_('You will now receive notifications at %s'), $new_email));
|
||||
$mailNewAddress = MailSuccessEmailUpdate::create($this->app, $newReceiver, null, sprintf(_('You will no longer receive notifications at %s'), $old_email));
|
||||
|
||||
try {
|
||||
$this->app['notification.deliverer']->deliver($mailOldAddress);
|
||||
$this->app['notification.deliverer']->deliver($mailNewAddress);
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
$this->app['notification.deliverer']->deliver($mailOldAddress);
|
||||
$this->app['notification.deliverer']->deliver($mailNewAddress);
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
@@ -14,6 +14,7 @@ namespace Alchemy\Phrasea\Helper\User;
|
||||
use Alchemy\Phrasea\Helper\Helper;
|
||||
use Alchemy\Phrasea\Notification\Receiver;
|
||||
use Alchemy\Phrasea\Notification\Mail\MailRequestPasswordSetup;
|
||||
use Alchemy\Phrasea\Notification\Mail\MailSuccessEmailConfirmationUnregistered;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -183,7 +184,7 @@ class Manage extends Helper
|
||||
|
||||
if (false !== $urlToken) {
|
||||
$mail = MailSuccessEmailConfirmationUnregistered::create($this->app, Receiver::fromUser($createdUser));
|
||||
$mail->setUrl($this->app['url_generator']->generate('login_forgot_password', array('token' => $urlToken), true));
|
||||
$mail->setButtonUrl($this->app['url_generator']->generate('login_forgot_password', array('token' => $urlToken), true));
|
||||
$this->app['notification.deliverer']->deliver($mail);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user