[TASK] Allow all fields in felogin hook "forgotPasswordMail" 43/54643/2
authorTom Novotny <tom.novotny@web.de>
Mon, 13 Nov 2017 14:56:51 +0000 (15:56 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 15 Nov 2017 07:41:17 +0000 (08:41 +0100)
Return all fields to ease the work with hooks.
Intention is not having to query again in hook
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['forgotPasswordMail']
to change "Hello [username],..." to "Hello [fist_name] [last_name],..."
in password forgot mail to user.

Resolves: #82996
Releases: master, 8.7
Change-Id: I18e18845e61d36aadd043758f902dc6627ad5f37
Reviewed-on: https://review.typo3.org/54643
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php

index 1b434fe..b0c23c5 100644 (file)
@@ -227,7 +227,7 @@ class FrontendLoginController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
                 $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($userTable);
                 $queryBuilder->setRestrictions(GeneralUtility::makeInstance(FrontendRestrictionContainer::class));
                 $row = $queryBuilder
-                    ->select('uid', 'username', 'password', 'email')
+                    ->select('*')
                     ->from($userTable)
                     ->where(
                         $queryBuilder->expr()->orX(