svn commit: r1867849 - /ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/CustomerEvents.xml

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

svn commit: r1867849 - /ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/CustomerEvents.xml

jleroux@apache.org
Author: jleroux
Date: Tue Oct  1 17:32:02 2019
New Revision: 1867849

URL: http://svn.apache.org/viewvc?rev=1867849&view=rev
Log:
Fixed: Issue with "User name filed" while creating the new user
(OFBIZ-11226)

Steps to regenerate:

    Open URL https://demo-trunk.ofbiz.apache.org
    2. Click on the "Register" button for creating a new customer
    3. Enter all the mandatory details for the registring a new customer
    4. Enter the user name with a dot (.), for example: "demo.user"
    5. Click on the "Save" button

Actual: Error message "Username can only have letters, digits and the _-
        characters" is displaying on the screen.

Expected: Dot (.) should be also allowed in validation rules when we enter user
name manually with a dot (.)

Thanks: Vedansh Tiwari for report

Modified:
    ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/CustomerEvents.xml

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/CustomerEvents.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/CustomerEvents.xml?rev=1867849&r1=1867848&r2=1867849&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/CustomerEvents.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/CustomerEvents.xml Tue Oct  1 17:32:02 2019
@@ -172,7 +172,7 @@ under the License.
             <if>
                 <condition>
                     <not>
-                        <if-regexp field="parameters.USERNAME" expr="^[a-zA-Z0-9_-]+$"></if-regexp>
+                        <if-regexp field="parameters.USERNAME" expr="^[.a-zA-Z0-9_-]+$"></if-regexp>
                     </not>
                 </condition>
                 <then>