Thank you for the quick response and for clarifying the above Vishanth! Thanks & Regards Shavindri Dissanayake Technical Writer LinkedIn Profile <https://www.linkedin.com/profile/view?id=112227277&trk=nav_responsive_tab_profile> Mob: 0779966739
WSO2 Inc. lean.enterprise.middleware On Fri, Mar 20, 2015 at 10:29 AM, Vishanth Balasubramaniam < [email protected]> wrote: > Hi Shavindri, > > Thanks for pointing this out. This is because the length of the username > is defined at the UsernameJavaRegEx in user-mgt.xml [1], where as default > we have specified minimum of 3 characters and upto 30 [2]. > > I think we need to validate the username in the UI according the RegEx > provided at the user-mgt.xml [1]. > > As you can see in the UsernameJavaRegEx [2], those are the allowed special > characters valid for the username, and nothing is made mandatory. > > [1] - <PRODUCT_HOME>/repository/conf/user-mgt.xml > [2] - <Property > name="UsernameJavaRegEx">^[^~!#$;%^*+={}\\|\\\\<>,\'\"]{3,30}$</Property> > > Thank you, > Vishanth > > On Fri, Mar 20, 2015 at 10:05 AM, Shavindri Dissanayake < > [email protected]> wrote: > >> Hi Devs, >> >> When adding a User, is it validated so that the username is at-least 4 >> characters long? >> >> Secondly, the password is validated so that its at-least 6 characters. In >> this does the password have to have any special characters (eg: including >> one uppercase letter, one special character and alphanumeric characters)? >> I came across this while documenting the UI for Stratos, could someone >> please confirm this for me. >> >> Further i created a JIRA, because a user can be added with a username of >> 3 characters despite an error message given, saying that a username must be >> 4 characters long [1]. >> >> [1] https://issues.apache.org/jira/browse/STRATOS-1269 >> >> >> Thanks & Regards >> Shavindri Dissanayake >> Technical Writer >> LinkedIn Profile >> <https://www.linkedin.com/profile/view?id=112227277&trk=nav_responsive_tab_profile> >> Mob: 0779966739 >> >> WSO2 Inc. >> lean.enterprise.middleware >> > > > > -- > *Vishanth Balasubramaniam* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: *+94771737718* > about me: *http://about.me/vishanth <http://about.me/vishanth>* > >
