RadTextBox password strenght checker symbol list

6 posts, 0 answers
  1. Massimiliano
    Massimiliano avatar
    185 posts
    Member since:
    Oct 2012

    Posted 17 May 2013 Link to this post

    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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Massimiliano
    Massimiliano avatar
    185 posts
    Member since:
    Oct 2012

    Posted 20 May 2013 Link to this post

    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.
  5. Massimiliano
    Massimiliano avatar
    185 posts
    Member since:
    Oct 2012

    Posted 06 Jul 2013 Link to this post

    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! :)
  6. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 09 Jul 2013 Link to this post

    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.
  7. Massimiliano
    Massimiliano avatar
    185 posts
    Member since:
    Oct 2012

    Posted 09 Jul 2013 Link to this post

    Thank you Vasil. Glad to contribute.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017