|
|
@ -96,6 +96,8 @@ class RegistrationHandlerListener implements EventSubscriberInterface |
|
|
|
|
|
|
|
|
|
|
|
public function onHandleFormSetPasswordEnabled(RegistrationHandleEvent $event) |
|
|
|
public function onHandleFormSetPasswordEnabled(RegistrationHandleEvent $event) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if ($event->isFailed()) |
|
|
|
|
|
|
|
return; |
|
|
|
$user = $event->getForm()->getData(); |
|
|
|
$user = $event->getForm()->getData(); |
|
|
|
if (!$user) |
|
|
|
if (!$user) |
|
|
|
return; |
|
|
|
return; |
|
|
@ -105,6 +107,8 @@ class RegistrationHandlerListener implements EventSubscriberInterface |
|
|
|
|
|
|
|
|
|
|
|
public function onHandleFormConnectExternal(RegistrationHandleEvent $event) |
|
|
|
public function onHandleFormConnectExternal(RegistrationHandleEvent $event) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if ($event->isFailed()) |
|
|
|
|
|
|
|
return; |
|
|
|
$user = $event->getForm()->getData(); |
|
|
|
$user = $event->getForm()->getData(); |
|
|
|
if (!$user) |
|
|
|
if (!$user) |
|
|
|
return; |
|
|
|
return; |
|
|
@ -117,6 +121,8 @@ class RegistrationHandlerListener implements EventSubscriberInterface |
|
|
|
|
|
|
|
|
|
|
|
public function onHandleFormLogoutExternal(RegistrationHandleEvent $event) |
|
|
|
public function onHandleFormLogoutExternal(RegistrationHandleEvent $event) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if ($event->isFailed()) |
|
|
|
|
|
|
|
return; |
|
|
|
if ($this->getTemporaryUser()) |
|
|
|
if ($this->getTemporaryUser()) |
|
|
|
$this->tokenStorage->setToken(null); |
|
|
|
$this->tokenStorage->setToken(null); |
|
|
|
} |
|
|
|
} |
|
|
|