Hi Nirmal,

By design the password length of Carbon platform is configurable. Please
have a look at user-mgt.xml

<Property name="PasswordJavaScriptRegEx">[\\S]{5,30}</Property>

Since Java and JS use slightly different ways for expressing regular
expressions there should be another attribute in user-mgt.xml as follows.
This already there for others - username length and etc..

<Property name="PasswordJavaRegEx">xyz</Property>

We should use this information EVERYWHERE to do password validation. This
includes ALL JS validation in the front end as well.

thanks,
dimuthul


On Sat, Feb 4, 2012 at 2:01 PM, Afkham Azeez <az...@wso2.com> wrote:

> No,  that's not the correct bundle. May be a method in CarbonUtil would do
>
> --
> Afkham Azeez
> Sent from my phone
> On Feb 4, 2012 11:49 AM, "Nirmal Fernando" <nir...@wso2.com> wrote:
>
>> Hi,
>>
>> On Mon, Jan 30, 2012 at 9:24 AM, Afkham Azeez <az...@wso2.com> wrote:
>>
>>> Please fix this to do the password requirements validation from a single
>>> place. The length should be the same in all cases.
>>>
>>  Will it be right to do the password validation at
>> "org.wso2.carbon.registry.common.ui" (inside registry component)? or Is
>> there a more suitable place?
>>
>> --
>>> Afkham Azeez
>>> Sent from my phone
>>> On Jan 28, 2012 10:27 AM, "Nirmal Fernando" <nir...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> When you create a new domain in Stratos minimum password length
>>>> requirement is 6, but after logged in when you adding a new user minimum
>>>> password length requirement is 5 (which can only be seen in the error
>>>> message pop up, when u enter a <5 character password).
>>>>
>>>> Is this a design decision? If we have this inconsistency isn't it
>>>> better to add a tip mentioning minimum password length requirement when you
>>>> create a new user.
>>>>
>>>> PS: this is related to issue at
>>>> https://wso2.org/jira/browse/CARBON-12290
>>>>
>>>> Thanks
>>>>
>>>> --
>>>>
>>>> regards,
>>>> Nirmal
>>>>
>>>> Software Engineer, WSO2 Inc.
>>>> mobile: +94715779733
>>>>
>>>>
>>>> _______________________________________________
>>>> Carbon-dev mailing list
>>>> Carbon-dev@wso2.org
>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>
>>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Software Engineer- Platform, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Dimuthu Leelarathne
Technical Lead

WSO2, Inc. (http://wso2.com)
email: dimut...@wso2.com

Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to