[FEATURE] Provide untouched newPassword in felogin password_changed hook 76/42276/5
authorGerrit Mohrmann <mohrmann.t3@gmx.de>
Wed, 5 Aug 2015 14:07:02 +0000 (16:07 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 7 Aug 2015 10:59:06 +0000 (12:59 +0200)
To make it possible to use the ext:felogin password_changed hook even
if ext:saltedpasswords is enabled, it needs a parameter with an
untouched newPassword.

* $_params['newPasswordUnencrypted'] is now available in password_changed
hook.

Resolves: #68757
Releases: master
Change-Id: Ibde0c24a106d84452cd1cefc23599377e7ea95fd
Reviewed-on: http://review.typo3.org/42276
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Documentation/Changelog/master/Feature-68757-ProvideUntouchedNewPasswordInFeloginPasswordChangedHook.rst [new file with mode: 0644]
typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-68757-ProvideUntouchedNewPasswordInFeloginPasswordChangedHook.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-68757-ProvideUntouchedNewPasswordInFeloginPasswordChangedHook.rst
new file mode 100644 (file)
index 0000000..3e76d3d
--- /dev/null
@@ -0,0 +1,8 @@
+================================================================================
+Feature: #68757 - Provide untouched newPassword in felogin password_changed hook
+================================================================================
+
+Description
+===========
+
+The new 'newPasswordUnencrypted' parameter in the ext:felogin password_changed hook won't be salted if ext:saltedpaswords is enabled. It is now possible to work with the real new password.
\ No newline at end of file
index 563181a..637fce3 100644 (file)
@@ -344,7 +344,8 @@ class FrontendLoginController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
                                                if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['password_changed']) {
                                                        $_params = array(
                                                                'user' => $user,
-                                                               'newPassword' => $newPass
+                                                               'newPassword' => $newPass,
+                                                               'newPasswordUnencrypted' => $newPass
                                                        );
                                                        foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['password_changed'] as $_funcRef) {
                                                                if ($_funcRef) {