This is a migrated thread and some comments may be shown as answers.

RadTextBox password strenght checker symbol list

5 Answers 108 Views
Input
This is a migrated thread and some comments may be shown as answers.
Massimiliano
Top achievements
Rank 1
Massimiliano asked on 17 May 2013, 05:47 PM
It would be nice to have a list of what is considered a symbol by the visual strenght checker so to reproduce an adeguate custom validator wich consider the same symbols.
Is there a way to retrieve such complete list of symbols? For example it seems it doesn't consider the "," (comma) as a valid symbol.

Thanks in advance.

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 May 2013, 04:36 AM
Hi,

Try setting the MinimumSymbolCharacters property of the PasswordStrengthSettings to a desired value. Please have a look at the following sample code.

ASPX:
<telerik:RadTextBox ID="RadTextBox1" runat="server" TextMode="Password">
    <PasswordStrengthSettings ShowIndicator="true" PreferredPasswordLength="4" MinimumSymbolCharacters="2" />
</telerik:RadTextBox>

Thanks,
Shinu.
0
Massimiliano
Top achievements
Rank 1
answered on 20 May 2013, 11:27 AM
Thank you Shinu for your reply. This sets HOW MANY minimum symbols you want in the password fiels.
What I was asking is WICH characters are considered symbols from the checker. For example in my testings, the comma (,) is not considered a symbol. So it would be nice to have a complete list of what it considers symbols to have a regex/custom validator to act accordingly.
0
Massimiliano
Top achievements
Rank 1
answered on 06 Jul 2013, 02:27 PM
After some research I found out WICH characters are considered symbols from the RadInput strenghtchecker and why the comma (,) is not.

It seems the strenghtchecker checks for: [^a-z,A-Z,0-9,\x20] ,"g" (global). Wich means everything that is not a number, a letter, a space (x20) and of course a comma, since those ranges should have not been separated by ",".
I think this was clearly a mistake from Telerik (since if it was inted a single comma "," would have been enough).
So the correct regex should have been  [^a-zA-Z0-9\x20] ,"g" (without commas) and that would have considered "special character" everything but letters, numbers and space (wich I think was the intended behaviour)

Give us the comma back! :)
0
Vasil
Telerik team
answered on 09 Jul 2013, 04:01 PM
Hello Massimiliano,

Thank you for your feedback, indeed there is a mistake in the regex and we will correct it.
As appreciation of your feedback we are updating your telerik points.

Regards,
Vasil
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Massimiliano
Top achievements
Rank 1
answered on 09 Jul 2013, 09:37 PM
Thank you Vasil. Glad to contribute.
Tags
Input
Asked by
Massimiliano
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Massimiliano
Top achievements
Rank 1
Vasil
Telerik team
Share this question
or