Project

General

Profile

Actions

Bug #15591

closed

t3lib/jsfunc.validateform.js does not verify password fields

Added by J¶rg Wagner almost 19 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2006-02-07
Due date:
% Done:

0%

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

Description

Using a simple login form like this:

10 = FORM
10 {
dataArray {
10.label = Name
10.type = user=input
10.value = Name
10.required = 1
20.label = Passwort
20.type = pass=password
20.value = Passwort
20.required = 1
30.type = logintype=hidden
30.value = login
40.type = pid=hidden
40.value = {$styles.content.loginform.pid}
50.type = submit=submit
50.value = Login
}
layout = ###LABEL### ###FIELD###
type = 35
REQ = 1
}

Then in FE entering an empty password does not give a JS alert - although require is set for the password field in the TS code.

The reason is a missing "case" statement in t3lib/jsfunc.validateform.js (see "Additional Information".

The bug can be resolved by a change to t3lib/jsfunc.validateform.js :

Change this block (starting around line 72):

switch(type)    {
case "text":
case "textarea":
value = fObj.value;
break;

to this:

switch(type)    {
case "text":
case "textarea":
case "password":
value = fObj.value;
break;

(issue imported from #M2515)


Files

validateform.patch (315 Bytes) validateform.patch Administrator Admin, 2007-04-28 04:55

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #16243: /t3lib/jsfunc.validateform.js does note test for fieldtype 'password'Closed2006-06-15

Actions
Actions #1

Updated by J¶rg Wagner over 18 years ago

Problem persists in Typo3 4.0 RC1.
Same solution also works for RC1.

Actions #2

Updated by Martin Kutschker over 17 years ago

Fixed in SVN.

Actions

Also available in: Atom PDF