From 755ff9e835614fd66f67615aede950b38f8ab308 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 4 Oct 2016 10:42:45 +0200 Subject: Create config even if user is disabled When a user register itself AND the wallabag instance is configured to send a confirmation email, the user is disabled when the listener (which create the config) receive the event. There were a check (don't know why) if the user is enabled we create the config. But the user is disabled when confirmation email is actived. --- src/Wallabag/UserBundle/EventListener/CreateConfigListener.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/Wallabag/UserBundle/EventListener/CreateConfigListener.php b/src/Wallabag/UserBundle/EventListener/CreateConfigListener.php index 15f4ac3d..8e2f04e9 100644 --- a/src/Wallabag/UserBundle/EventListener/CreateConfigListener.php +++ b/src/Wallabag/UserBundle/EventListener/CreateConfigListener.php @@ -45,10 +45,6 @@ class CreateConfigListener implements EventSubscriberInterface public function createConfig(UserEvent $event, $eventName = null, EventDispatcherInterface $eventDispatcher = null) { - if (!$event->getUser()->isEnabled()) { - return; - } - $config = new Config($event->getUser()); $config->setTheme($this->theme); $config->setItemsPerPage($this->itemsOnPage); -- cgit v1.2.3