User-592739109 posted
Trying to implement CommonLogon into a project of mine and need an example of how to implement it using VB.Net. I have compiled the project and it has created 3 dll files. All which are now loaded into my project. What I need to do is verify
a password meets certain criteria. (at least 8 characters long, 1 special character and 1 number).
I have looked at the example code and this is what I have thus far. Looking for further assistance. Can this be used without CommonData or is this all I need. Getting an error:
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at CommonCS.CommonData.WriteEventError(Exception error, String
logNote) at CommonParam.ParamInteger.SetValue(ParamIntegerEnum id, Int32 paramValue) at UserProfile.btnChangePwd_Click(Object sender, EventArgs e)
Imports CommonCS
Imports CommonLogOn
Imports CommonParam
ParamInteger.SetValue(ParamIntegerEnum.PasswordMinimumNumberOfNumericCharacters, 0)
ParamInteger.SetValue(ParamIntegerEnum.PasswordMinimumNumberOfSpecialCharacters, 1)
ParamInteger.SetValue(ParamIntegerEnum.PasswordMinimumNumberOfLowercase, 1)
ParamInteger.SetValue(ParamIntegerEnum.PasswordMinimumNumberOfUppercase, 1)
ParamInteger.SetValue(ParamIntegerEnum.PasswordMinimumLength, 8)
Dim message As String = "Invalid Password contraints"
Dim password = Me._txtPwd.Text
Dim result = PasswordSupport.IsValidSyntax(password, message)