aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-10-04 10:42:45 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-04 10:42:46 +0200
commit755ff9e835614fd66f67615aede950b38f8ab308 (patch)
treeb1c31a46b1e13cd974e0c172c4c8d460af155400 /src
parentf0b2d57154832fdd6255a1bef0df34a7144806c5 (diff)
downloadwallabag-755ff9e835614fd66f67615aede950b38f8ab308.tar.gz
wallabag-755ff9e835614fd66f67615aede950b38f8ab308.tar.zst
wallabag-755ff9e835614fd66f67615aede950b38f8ab308.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/UserBundle/EventListener/CreateConfigListener.php4
1 files changed, 0 insertions, 4 deletions
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
45 45
46 public function createConfig(UserEvent $event, $eventName = null, EventDispatcherInterface $eventDispatcher = null) 46 public function createConfig(UserEvent $event, $eventName = null, EventDispatcherInterface $eventDispatcher = null)
47 { 47 {
48 if (!$event->getUser()->isEnabled()) {
49 return;
50 }
51
52 $config = new Config($event->getUser()); 48 $config = new Config($event->getUser());
53 $config->setTheme($this->theme); 49 $config->setTheme($this->theme);
54 $config->setItemsPerPage($this->itemsOnPage); 50 $config->setItemsPerPage($this->itemsOnPage);