|
@@ 94-102 (lines=9) @@
|
| 91 |
|
|
| 92 |
|
$this->triggerEvent('user.login'); |
| 93 |
|
|
| 94 |
|
if (!$user->isEmailConfirmed()) { |
| 95 |
|
throw new AuthenticationException( |
| 96 |
|
$this->getDictionary() |
| 97 |
|
->get('user.authentication.error.email_not_confirmed') |
| 98 |
|
. '<br><a href="#" data-action="resend-confirmation-email">' . $this->getDictionary() |
| 99 |
|
->get('user.authentication.error.resend_confirmation_email') |
| 100 |
|
. '</a>' |
| 101 |
|
); |
| 102 |
|
} |
| 103 |
|
return $user; |
| 104 |
|
} catch (AuthenticationException $e) { |
| 105 |
|
throw $e; |
|
@@ 133-141 (lines=9) @@
|
| 130 |
|
$session = $this->getSession(); |
| 131 |
|
if ($session instanceof SessionEntity) { |
| 132 |
|
|
| 133 |
|
if (!$session->getUser()->isEmailConfirmed()) { |
| 134 |
|
throw new AuthenticationException( |
| 135 |
|
$this->getDictionary() |
| 136 |
|
->get('user.authentication.error.email_not_confirmed') |
| 137 |
|
. '<br><a href="#" data-action="resend-confirmation-email">' . $this->getDictionary() |
| 138 |
|
->get('user.authentication.error.resend_confirmation_email') |
| 139 |
|
. '</a>' |
| 140 |
|
); |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
return $this->user = $session->getUser(); |
| 144 |
|
} |