[BUGFIX] changing FE user password updates tstamp 88/21188/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:27:19 +0000 (01:27 +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/21188

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

index c571b1b..bc2c56f 100644 (file)
@@ -286,7 +286,7 @@ class FrontendLoginController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
                                                        $newPass = $_params['newPassword'];
                                                }
                                                // Save new password and clear DB-hash
-                                               $res = $GLOBALS['TYPO3_DB']->exec_UPDATEquery('fe_users', 'uid=' . $user['uid'], array('password' => $newPass, 'felogin_forgotHash' => ''));
+                                               $res = $GLOBALS['TYPO3_DB']->exec_UPDATEquery('fe_users', 'uid=' . $user['uid'], array('password' => $newPass, 'felogin_forgotHash' => '', 'tstamp' => $GLOBALS['EXEC_TIME']));
                                                $markerArray['###STATUS_MESSAGE###'] = $this->getDisplayText('change_password_done_message', $this->conf['changePasswordDoneMessage_stdWrap.']);
                                                $done = TRUE;
                                                $subpartArray['###CHANGEPASSWORD_FORM###'] = '';