diff --git a/src/Services/UserService.php b/src/Services/UserService.php index 95fb93c6..ff65ce9e 100644 --- a/src/Services/UserService.php +++ b/src/Services/UserService.php @@ -306,11 +306,8 @@ class UserService $this->assertNoUserWithThisEmail($user, $user->getEmailUnconfirmed()); $user->setAccountConfirmed(true); - if ($user->getEmailUnconfirmed()) - { - $user->setEmail($user->getEmailUnconfirmed()); - $user->setEmailUnconfirmed(null); - } + $user->setEmail($user->getEmailUnconfirmed()); + $user->setEmailUnconfirmed(null); return $user; }