Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 47242 invoked from network); 21 Nov 2006 13:38:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2006 13:38:26 -0000 Received: (qmail 90028 invoked by uid 500); 21 Nov 2006 13:38:30 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 90001 invoked by uid 500); 21 Nov 2006 13:38:30 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 89950 invoked by uid 99); 21 Nov 2006 13:38:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Nov 2006 05:38:30 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Nov 2006 05:38:19 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id F1C6A1A9846; Tue, 21 Nov 2006 05:37:44 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r477669 - in /geronimo/server/branches/1.2/applications/console: geronimo-console-framework/src/main/webapp/js/ geronimo-console-standard/src/main/webapp/WEB-INF/view/keystore/ geronimo-console-standard/src/main/webapp/WEB-INF/view/realmwiz... Date: Tue, 21 Nov 2006 13:37:44 -0000 To: scm@geronimo.apache.org From: vamsic007@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061121133744.F1C6A1A9846@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: vamsic007 Date: Tue Nov 21 05:37:43 2006 New Revision: 477669 URL: http://svn.apache.org/viewvc?view=rev&rev=477669 Log: GERONIMO-2533 Password setup forms should use a confirmation field Modified: geronimo/server/branches/1.2/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/keystore/configureKey.jsp geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/keystore/createKeystore.jsp geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/realmwizard/_sql.jsp geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/realmwizard/configure.jsp geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/webmanager/connector/editHTTPS.jsp Modified: geronimo/server/branches/1.2/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js?view=diff&rev=477669&r1=477668&r2=477669 ============================================================================== --- geronimo/server/branches/1.2/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js (original) +++ geronimo/server/branches/1.2/applications/console/geronimo-console-framework/src/main/webapp/js/forms.js Tue Nov 21 05:37:43 2006 @@ -14,6 +14,9 @@ // See the License for the specific language governing permissions and // limitations under the License. //====================================================================== + +// $Rev$ $Date$ + function textElementsNotEmpty(formName, elementNameArray){ var obj; for(i in elementNameArray){ @@ -86,4 +89,19 @@ var d1 = mm+'/'+dd+'/'+yy; return inpDate == d1; } - \ No newline at end of file + +function passwordElementsConfirm(formName, elementNameArray) { + var pwd, cnf; + for(i in elementNameArray){ + var elem = elementNameArray[i]; + pwd = eval("document.forms['" + formName + "'].elements['"+ elem +"']"); + cnf = eval("document.forms['" + formName + "'].elements['confirm-"+ elem +"']"); + if(pwd.value != cnf.value){ + alert(elem + " and confirm password do not match."); + pwd.focus(); + return false; + } + } + return true; +} + Modified: geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/keystore/configureKey.jsp URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/keystore/configureKey.jsp?view=diff&rev=477669&r1=477668&r2=477669 ============================================================================== --- geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/keystore/configureKey.jsp (original) +++ geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/keystore/configureKey.jsp Tue Nov 21 05:37:43 2006 @@ -14,6 +14,9 @@ See the License for the specific language governing permissions and limitations under the License. --%> + +<%-- $Rev$ $Date$ --%> + <%@ page import="org.apache.geronimo.console.util.PortletManager"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%> @@ -23,6 +26,7 @@ var formName = "KeystoreForm"; var requiredFields = new Array("alias", "password", "certCN", "certO", "certOU", "certL", "certST", "certC"); var numericFields = new Array("valid"); +var passwordFields = new Array("password"); function validateForm(){ if(!textElementsNotEmpty(formName,requiredFields)) return false; @@ -30,6 +34,9 @@ if(!checkIntegral(formName, numericFields[i])) return false; } + if(!passwordElementsConfirm(formName, passwordFields)) { + return false; + } return true; } @@ -52,6 +59,12 @@ Password for new key: + + + + Confirm password: + + Modified: geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/keystore/createKeystore.jsp URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/keystore/createKeystore.jsp?view=diff&rev=477669&r1=477668&r2=477669 ============================================================================== --- geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/keystore/createKeystore.jsp (original) +++ geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/keystore/createKeystore.jsp Tue Nov 21 05:37:43 2006 @@ -14,11 +14,29 @@ See the License for the specific language governing permissions and limitations under the License. --%> + +<%-- $Rev$ $Date$ --%> + <%@ page import="org.apache.geronimo.console.util.PortletManager"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%> + +
@@ -34,8 +52,14 @@ + + + +
Confirm password: + +
- +
Modified: geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/realmwizard/_sql.jsp URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/realmwizard/_sql.jsp?view=diff&rev=477669&r1=477668&r2=477669 ============================================================================== --- geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/realmwizard/_sql.jsp (original) +++ geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/realmwizard/_sql.jsp Tue Nov 21 05:37:43 2006 @@ -14,6 +14,9 @@ See the License for the specific language governing permissions and limitations under the License. --%> + +<%-- $Rev$ $Date$ --%> + <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%> @@ -21,7 +24,9 @@ @@ -84,6 +94,7 @@ @@ -92,6 +103,16 @@ type="passwordtext" size="${optionMap[option].length}" value="${realm.options[option]}"> + + +
Confirm password:
+ + + +
${optionMap[option].description} Modified: geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/webmanager/connector/editHTTPS.jsp URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/webmanager/connector/editHTTPS.jsp?view=diff&rev=477669&r1=477668&r2=477669 ============================================================================== --- geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/webmanager/connector/editHTTPS.jsp (original) +++ geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/webmanager/connector/editHTTPS.jsp Tue Nov 21 05:37:43 2006 @@ -14,6 +14,9 @@ See the License for the specific language governing permissions and limitations under the License. --%> + +<%-- $Rev$ $Date$ --%> + <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %> @@ -22,6 +25,7 @@ var formName = "HttpsForm"; var requiredFields = new Array("host"); var numericFields = new Array("port", "maxThreads"); +var passwordFields = new Array(); function validateForm(){ if(!textElementsNotEmpty(formName, requiredFields)) { return false; @@ -31,6 +35,9 @@ return false; } } + if(!passwordElementsConfirm(formName, passwordFields)) { + return false; + } return true; } @@ -191,6 +198,12 @@ +
Confirm Password:
+ + + + +
ChangeSet the password used to access the keystore file. This is also the @@ -203,6 +216,9 @@ requiredFields = requiredFields.concat(new Array("keystorePassword")); + @@ -240,11 +256,20 @@ +
Confirm Password:
+ + + + +
ChangeSet the password used to verify the truststore file. Leave this empty if you don't want to change the current password. +