svn commit: r754845 - in /ofbiz/trunk: framework/common/src/org/ofbiz/common/Captcha.java specialpurpose/myportal/widget/MyPortalForms.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r754845 - in /ofbiz/trunk: framework/common/src/org/ofbiz/common/Captcha.java specialpurpose/myportal/widget/MyPortalForms.xml

hansbak-2
Author: hansbak
Date: Mon Mar 16 08:46:33 2009
New Revision: 754845

URL: http://svn.apache.org/viewvc?rev=754845&view=rev
Log:
small improvement on prevous captcha commit

Modified:
    ofbiz/trunk/framework/common/src/org/ofbiz/common/Captcha.java
    ofbiz/trunk/specialpurpose/myportal/widget/MyPortalForms.xml

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/Captcha.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/Captcha.java?rev=754845&r1=754844&r2=754845&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/Captcha.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/Captcha.java Mon Mar 16 08:46:33 2009
@@ -155,7 +155,7 @@
                 test.mkdir();
             }
          CAPTCHA_FILE_NAME = UtilDateTime.nowAsString().concat(".jpg");
-            request.setAttribute("fileName", URL_FILE_PATH + CAPTCHA_FILE_NAME);
+            request.setAttribute("captchaFileName", URL_FILE_PATH + CAPTCHA_FILE_NAME);
             request.setAttribute("ID_KEY", ID_KEY);
             ImageIO.write(image, "jpg", new File( CAPTCHA_FILE_PATH + CAPTCHA_FILE_NAME));
         } catch (IOException e) {

Modified: ofbiz/trunk/specialpurpose/myportal/widget/MyPortalForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/widget/MyPortalForms.xml?rev=754845&r1=754844&r2=754845&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/myportal/widget/MyPortalForms.xml (original)
+++ ofbiz/trunk/specialpurpose/myportal/widget/MyPortalForms.xml Mon Mar 16 08:46:33 2009
@@ -265,7 +265,7 @@
         <field name="PASSWORD" title="${uiLabelMap.CommonPassword}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><password size="15" maxlength="250"/></field>
         <field name="CONFIRM_PASSWORD" title="${uiLabelMap.CommonPassword}" tooltip="* ${uiLabelMap.CommonConfirm}" widget-style="required"><password size="15" maxlength="250"/></field>
         <field name="VerifyCaptchaTitle" title="${uiLabelMap.VerifyCaptcha}" title-area-style="group-label"><display description=" " also-hidden="false"/></field>
-        <field name="picOfcaptcha" title="${uiLabelMap.PicCaptcha}"><image value="${parameters.fileName}"></image></field>
+        <field name="picOfcaptcha" title="${uiLabelMap.PicCaptcha}"><image value="${parameters.captchaFileName}" height="40" width="149"/></field>
         <field name="reload" title=" "><hyperlink target="newRegisterLogin" description="${uiLabelMap.MyPortalReloadImage}"/></field>
         <field name="captcha" title="${uiLabelMap.VerifyCaptcha}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="23" maxlength="30"/></field>
         <field name="submitButton" title="${uiLabelMap.CommonSave}" title-area-style="group-label"><submit button-type="button"/></field>