Fixed bug #2515: jsfunc.validateform.js does not verify password fields
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 1 May 2007 17:07:19 +0000 (17:07 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 1 May 2007 17:07:19 +0000 (17:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2311 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/jsfunc.validateform.js

index 6a3181a..ec74e8e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+
+2007-05-01  Martin Kutschker  <martin.t.kutschker@blackbox.net>
+
+       * Fixed bug #2515: jsfunc.validateform.js does not verify password fields
+
 2007-04-30  Michael Stucki  <michael@typo3.org>
 
        * Improve the check for session support in Install Tool (see #1474). Thanks to Martin Kutschker!
index b229e09..ca633e3 100755 (executable)
@@ -4,11 +4,9 @@
 *
 * $Id$
 *
-*
-*
 *  Copyright notice
 *
-*  (c) 1998-2003 Kasper Skaarhoj
+*  (c) 1998-2007 Kasper Skaarhoj
 *  All rights reserved
 *
 *  This script is part of the TYPO3 t3lib/ library provided by
@@ -72,6 +70,7 @@ function validateForm(theFormname,theFieldlist,goodMess,badMess,emailMess)    {
                                switch(type)    {
                                        case "text":
                                        case "textarea":
+                                       case "password":
                                                value = fObj.value;
                                        break;
                                        case "select-one":
@@ -102,7 +101,7 @@ function validateForm(theFormname,theFieldlist,goodMess,badMess,emailMess)  {
                                                }
                                        break;
                                        default:
-                                               value=1;
+                                               value = 1;
                                }
 
                                switch(specialMode)     {