Author: tyrell
Date: Fri Feb 22 01:46:31 2008
New Revision: 14041

Log:

Clearing the other input error messages before failing a captcha challenge.

Modified:
   
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/identity/RegistrationBean.java

Modified: 
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/identity/RegistrationBean.java
==============================================================================
--- 
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/identity/RegistrationBean.java
    (original)
+++ 
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/identity/RegistrationBean.java
    Fri Feb 22 01:46:31 2008
@@ -321,6 +321,8 @@
             //First and formost checking captcha and returning immediately if 
invalid
             String expectedCaptchaValue = (String) 
request.getSession().getAttribute("captcha");
             if (!captcha.equals(expectedCaptchaValue)) {
+                //Clearing existing error records
+                errors.clear();
                 errors.put("captcha",
                            "The text you typed in doesn't match with the text 
in image. Please try again.");
                 return false;

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to