Project

General

Profile

Actions

Bug #22105

closed

Function changePassword does not work, when hitting 'enter' in change password form

Added by Christian Futterlieb almost 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
felogin
Target version:
-
Start date:
2010-02-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When trying to send the change password form by hitting 'enter' in the frontend, the same form appears again and again. It works only, when clicking on the submit button.

The method tx_felogin_pi1->changePassword() checks the _POST value 'changepasswordsubmit' (generated by the submit button) only with if ($postData['changepasswordsubmit'])).

When a form was sent without a mouse click, the value of the field will be '0' and thus not recognized.

checking with isset() will resolve this.

TYPO3 version 4.3.1
felogin version 1.3.0
(issue imported from #M13506)


Files

0013506.patch (786 Bytes) 0013506.patch Administrator Admin, 2010-02-10 19:40
Actions #1

Updated by Christian Futterlieb almost 15 years ago

added the patch

Actions #2

Updated by Steffen Müller almost 15 years ago

The relevant form field in the template is:

<input type="submit" name="tx_felogin_pi1[changepasswordsubmit]" value="###SEND_PASSWORD###" />

I guess your problem appears when ###SEND_PASSWORD### is not set (no button text). IMHO this should not be the case in practice.

Anyway your patch looks ok, since it would make the check more bulletproof. You can give it a try and send a RFC to the core list: http://typo3.org/teams/core/core-mailinglist-rules/

Note to self: PHP type comparison can be found here: http://www.php.net/manual/de/types.comparisons.php

Actions #3

Updated by Christian Futterlieb over 14 years ago

I detected the problem because I used an input with type="image" and the ###SEND_PASSWORD### marker is only in the 'alt' attribute (would have been a good idea to tell that before, sorry).

I'll submit a RFC, thanks for the hint

Actions #4

Updated by Christian Kuhn over 14 years ago

Committed to trunk rev. 7797, 4.3 rev. 7798

Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF