Allowed setting e-mail to empty after activation

This commit is contained in:
Marcin Kurczewski 2014-09-17 11:18:54 +02:00
parent aee6ed7dbf
commit 815a37cf9a

View file

@ -306,11 +306,8 @@ class UserService
$this->assertNoUserWithThisEmail($user, $user->getEmailUnconfirmed()); $this->assertNoUserWithThisEmail($user, $user->getEmailUnconfirmed());
$user->setAccountConfirmed(true); $user->setAccountConfirmed(true);
if ($user->getEmailUnconfirmed()) $user->setEmail($user->getEmailUnconfirmed());
{ $user->setEmailUnconfirmed(null);
$user->setEmail($user->getEmailUnconfirmed());
$user->setEmailUnconfirmed(null);
}
return $user; return $user;
} }