Allowed setting e-mail to empty after activation
This commit is contained in:
parent
aee6ed7dbf
commit
815a37cf9a
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue