RadTextBox PasswordStrengthSettings Scandinavian characters

2 posts, 0 answers
  1. juhohe
    juhohe avatar
    4 posts
    Member since:
    Dec 2011

    Posted 21 Mar 2017 Link to this post

    My problem is that a RadTextBox password input does not consider Scandinavian letters (å, ä, ö, Å, Ä, Ö) when it validates if the password is strong enough. I have set MinimumUpperCaseCharacters to value 2 and MinimumLowerCaseCharacters to value 2. The validator accepts password such as "AAss1234". Unfortunately, it does not accept such passwords as "ÄÄöö1234". However, this kind of password is accepted: "AAss1234ääÖÖ".


    How could one fix password strength validation so that also Scandinavian letters will be considered in MinimumUpperCaseCharacters and MinimumLowerCaseCharacters?


    <telerik:RadTextBox ID="RecoveryAccountPasswordInput" runat="server" MaxLength="15" TextMode="Password" onkeyup="checkPasswordMatchRecovery()" EnableSingleInputRendering="false">

    <PasswordStrengthSettings IndicatorElementBaseStyle="Base" ShowIndicator="true" MinimumNumericCharacters="2" MinimumUpperCaseCharacters="2"  MinimumLowerCaseCharacters="2" MinimumSymbolCharacters="0" PreferredPasswordLength="8" CalculationWeightings="50;25;25;0" TextStrengthDescriptions=" Invalid; Invalid; Invalid; Invalid; Acceptable" TextStrengthDescriptionStyles="L0;L1;L2;L3;L4;L5" IndicatorElementID="CustomIndicatorNew">





  2. Peter Milchev
    Peter Milchev avatar
    472 posts

    Posted 24 Mar 2017 Link to this post

    Hello Juhohe,

    By design the Casing Criteria considers only characters a-z lowercase and A-Z uppercase. 

    What we would suggest you is subscribing to the OnClientPasswordStrengthCalculating. In the event handler you can manually calculate and set the strength score.

    You can see the default password strength calculation in the Telerik.Web.UI project, Input folder, the PasswordStrengthChecker.js file. You can use is as a reference point for your custom calculation logic.

    Peter Milchev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top