[BUGFIX] changing FE user password updates tstamp 87/21187/2
authorJigal van Hemert <jigal.van.hemert@typo3.org>
Sat, 1 Jun 2013 20:59:47 +0000 (22:59 +0200)
committerSteffen Müller <typo3@t3node.com>
Sat, 1 Jun 2013 23:21:04 +0000 (01:21 +0200)
When an FE user changes his/her password the tstamp field of the
record is also updated to reflect that the record is changed.

Change-Id: I6907c7af6c46612f5e1d2e6aca6a38e9216d3af3
Fixes: #48685
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/21186
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik
Reviewed-by: Steffen Müller
Tested-by: Steffen Müller
Reviewed-on: https://review.typo3.org/21187

typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php

index 097a8b4..5b5ca25 100644 (file)
@@ -356,7 +356,7 @@ class FrontendLoginController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
                                                $res = $GLOBALS['TYPO3_DB']->exec_UPDATEquery(
                                                        'fe_users',
                                                        'uid=' . $user['uid'],
-                                                       array('password' => $newPass, 'felogin_forgotHash' => '')
+                                                       array('password' => $newPass, 'felogin_forgotHash' => '', 'tstamp' => $GLOBALS['EXEC_TIME'])
                                                );
                                                $markerArray['###STATUS_MESSAGE###'] = $this->getDisplayText(
                                                        'change_password_done_message',