X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Femails.inc.php;fp=include%2Femails.inc.php;h=2cf14d8c16ddb6256decbf34ab9aab5eb3373bfe;hb=a29666408c1ca175f2cc559388e2442b177523ad;hp=a22adb56920fbc61476d1482db6de6d5172be040;hpb=fdf18de9a9354c97c5c0aecc0753b22ef40f8a0e;p=platal.git diff --git a/include/emails.inc.php b/include/emails.inc.php index a22adb5..2cf14d8 100644 --- a/include/emails.inc.php +++ b/include/emails.inc.php @@ -816,6 +816,9 @@ class Redirect XDB::execute('REPLACE INTO email_redirect_account (uid, redirect, flags, action) VALUES ({?}, {?}, \'active\', {?})', $this->user->id(), $email, $filter); + $listClient = new MMList(S::user()); + $listClient->change_user_email($this->user->forlifeEmail(), $new_email); + update_alias_user($this->user->forlifeEmail(), $new_email); if ($logger = S::v('log', null)) { // may be absent --> step4.php S::logger()->log('email_add', $email . ($this->user->id() != S::v('uid') ? " (admin on {$this->user->login()})" : "")); }