]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Cleanup
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 2 Dec 2018 17:47:34 +0000 (18:47 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 23 Jan 2019 12:28:02 +0000 (13:28 +0100)
src/Wallabag/UserBundle/Controller/ManageController.php
src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php

index b9fd866059a49916003b0a842816f08f8bfdb77a..63a06206150d6cba59766a6adeaec345847e4f1a 100644 (file)
@@ -146,8 +146,6 @@ class ManageController extends Controller
         $form->handleRequest($request);
 
         if ($form->isSubmitted() && $form->isValid()) {
-            $this->get('logger')->info('searching users');
-
             $searchTerm = (isset($request->get('search_user')['term']) ? $request->get('search_user')['term'] : '');
 
             $qb = $em->getRepository('WallabagUserBundle:User')->getQueryBuilderForSearch($searchTerm);
index e8e29aa9eb91b04d43697dc3d753657e68ae036a..2797efde9edb3aa90c4ea4199c9f1f6a185351a7 100644 (file)
@@ -97,7 +97,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface
 
         $message = new \Swift_Message();
         $message
-            ->setTo($user->getEmail())
+            ->setTo($user->getEmailAuthRecipient())
             ->setFrom($this->senderEmail, $this->senderName)
             ->setSubject($subject)
             ->setBody($bodyText, 'text/plain')