Developer forum

Forum » CMS - Standard features » Typo in password check

Typo in password check

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

We're using PasswordGenerator.CheckPasswordComplexity to check a password's strength. There's a typo in the error message which prevents us from using the value as-is:

                    Using dsExtranet = Database.CreateDataSet(CommandBuilder.Create("SELECT [AccessUser].[AccessUserUserName], [AccessUser].[AccessUserPassword], [AccessUser].[AccessUserID] FROM [AccessUser] WHERE ( [AccessUser].[AccessUserID] = {0} )", userId), cnAccess)
                        ' if the password must have a minimum length
                        If Converter.ToInt32(SystemConfiguration.Instance.GetValue(settingsPath + "MinimumOfCharacters")) > 0 Then
                            If Len(password) < Converter.ToInt32(SystemConfiguration.Instance.GetValue(settingsPath + "MinimumOfCharacters")) Then
                                errorMessage = "Minimum number of characers for password is " & Converter.ToInt32(SystemConfiguration.Instance.GetValue(settingsPath + "MinimumOfCharacters"))
                                passwordErrorCode = 1
                                isPaswordGood = False
                            End If
                        End If

Can that be changed to characters? The same typo exists in LoginHandler but it looks like that predates 9.4

Thanks!

Imar

 


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi Imar,

I've created TFS 47343 against the bug, thanks for observing.

BR, Oleg QA

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Oops, Nuno just pointed out a typo in how I wrote characters. Obviously, I meant characters ;-)

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Imar

The problem regarding #47343 "Typo in password check" has now been resolved in Dynamicweb version 9.4.6

Download from here: http://doc.dynamicweb.com/releases-and-downloads/releases

Let me know if you need any more help regarding this

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum