HomeHome Product Discus... Product Discus...SmithCartSmithCartUnable to create account, and login errorsUnable to create account, and login errors
Previous
 
Next
New Post
12/6/2010 12:21 PM
 

Hi,

I have been seeing some major problems with the account system in v.3.95. First, for stability, you MUST make sure people have to have an account created BEFORE adding to a cart, instead of just required for checkout. The reason is that there is a problem with the connection between the creation of DNN accounts and SmithCart accounts. For example, when you do not have the required for add to cart selected, when given the SC screen where you can login, or create and account, and if you try to create an account by entering a username and password, then going through the next screens, you will get an object not set error after purchase and you will not get the order info added to the account. To avoid this, I made sure the checkbox was set so that login was required simply to add to the cart. Then, there was a button to create an account, instead of entering a username and password to create an account. Then, this button took you to a different path to create an account and it did work. But, one important issue is that critera info is not enforced, so a user has no idea about what to do when they get the following error:

In this case, there were either not enough characters to create a password (I think 7), or the password was all numbers, with no letters, so it simply gave the Unable to create account error with no other information.

But in any case, there is a real disconnection between the creation of Smith Cart accounts and DNN accounts. And when testing with a 4111... card in test mode, Smith Cart accounts were created, but DNN accounts were not, thus there were many repeats in the database and there is no way to delete the orphaned accounts except to manually edit the database. This would of course happen when you get the object errors after a purchase when using the first method of requiring an account for checkout (not add to cart).

But, back to a few of the initial errors when adding to a cart does NOT require an account, but checkout does... You will eventually get to a screen that has you confirm your order, but note the screen below:

Note how it says the login is OPTIONAL (even though it is required by the cart). Plus, if you did not have the right password created in the initial screen, with the 7 numbers or letters, you will get the error shown in the above pic. Plus, you will get the object error on checkout. So again, to avoid this, I had to enforce an account to simply add to the cart, which is OK!!! It seems to take you on a different route to account creation. But the user gets no information on why an account could not be created, it simply says unable to create account. To avoid this, SC should validate the form fields before trying to create an account.

Hope this all makes sense. Again, DO NOT use the following screen on the site:

Set it up to use this screen by selecting "Add To Cart Requires Login" and you will get:

One final major problem... The login screen from SC does not allow the user to login. The default DNN login does, but the Smith Cart login screen will not work. Again, ONLY the DNN login screen works, but not SC.

Does Not Work:

Does Work:

So the question is: How can we get validated new user accounts so there are no errors later, and how can we get the SC login screen to work the same as the DNN login screen, where a user can login with either. Note: SOME ACCOUNTS will work with both, such as accounts created through DNN. But if it is created through SC, only the DNN login will work for that account.

Update 4:10pm...

If Hide Login and Password is selected so it does not show in the checkout screen, it resolves part of the conflict. But! The major issue is that if you create an account where you initiate a new account in this screen:

And if the password is not valid according to DNN (e.g. 12345), then when the purchase is made the DNN account will NOT get created, you will get an "Object reference not set to an instance of an object." error after the payment gateway approves the order, but your cart will not have any knowledge of the order because of the "Object reference not set to an instance of an object" error because DNN refused to accept the account. Also, the SC login screen not working, but DNN login screen working problem still exists.

 
New Post
12/7/2010 1:10 PM
 

Hi,

I could not reproduce this at the www7 site.

I originally thought this could be because of the multiple accounts for the same username. This is possible in SC because the DNN password restriction is not enforced in SC (with no error details given to the customer), so a user can keep submitting their new account, getting no error message, go back, resubmit, etc. But I deleted the account manually in the database in the Smith_Customers database.

But, I still cannot login to accounts created through SC via the SC login screen... Only can accounts created via the DNN screen can be logged in via the SC screen. But SC created accounts can be only logged in via the DNN screen, and not the SC screen.

If you have any ideas of where to look, let me know. I will keep testing trying to find a solution.

 
New Post
12/7/2010 2:31 PM
 

Found a little more info:

In the web.config file, there are 2 settings that need to be sync'ed up. Maybe you can read the parameter, or have a place where users can enter it...

These two are important:

minRequiredPasswordLength="7"

minRequiredNonalphanumericCharacters="0"

From the web.config file, you see these descriptions:

minRequiredPasswordLength="int" The minimum password length

minRequiredNonalphanumericCharacters="int" The minimum number of non-alphanumeric characters

So, if these are not enforced by SmithCart, in sync with DNN, you will ether get customer errors or multiple accounts in SmithCart without a corresponding DNN account.

Still not sure why the SmithCart account login does not work. I will report back if I find anything.

 
New Post
12/7/2010 3:25 PM
 

I dont know of a way for the cart to read the password settings from the web.config but what you could do is adjust password validator on the signin and confirm pages to match what your have set in your portal web.config. See the following RegularExpressionValidator I copied from the confirm.ascx page:

<asp:RegularExpressionValidator ID="revPasswordLength" runat="server" ControlToValidate="txtPassword" ErrorMessage="Password must be minimum of 7 characters." ValidationExpression=".{8}.*" Display="dynamic"/>

<asp:RegularExpressionValidator ID="revPassword" runat="server" ControlToValidate="txtPassword" ErrorMessage=" Enter Valid Password." ValidationExpression="(?=.{8,})[a-zA-Z]+[^a-zA-Z]+|[^a-zA-Z]+[a-zA-Z]+" Display="dynamic"/>


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
12/8/2010 10:05 AM
 

This has still got me messed up.

On our site, the SmithCart login still gives invalid username or password errors, but the DNN login works fine. I cannot find out what the problem is. We are using the v3.95.

Do you have any idea at all?

The account creation screen for Smith Cart does not tell a user why they are getting the "Unable to create account" error in red text.

Maybe this is the best short term fix... Do you know of a way to bypass the Smith Cart account creation screen altogether, and force user to use a DNN account creation screen? This would fix any of these anomolies for the time being.

 
New Post
12/9/2010 2:20 PM
 

I found something...

Using the SC login with RegistrationCart does NOT work, but using Signinpage DOES work.

/Marketplace/tabid/60/ctl/RegistrationCart/mid/432/Default.aspx gives invalid username or password errors.

/Marketplace/tabid/60/ctl/signinpage/mid/432/Default.aspx works OK!

Do you have any idea of the differences here that could allow logins for Signinpage but not RegistrationCart?

But one more note: This only works on SOME accounts, and other accounts DO NOT work in the signinpage.

So if you can shed some light on how DNN and SmithCart accounts sync up, and the differences between the above pages, maybe I can find the root of the problem. In looking at the databases, I can see accounts created in the DNN User table, and I can see the corresponding account in the Smith_Customer table. All seems to match except the ID's, as those would rarely align. I wonder if it is something in the way passwords are sent through the system... maybe a web.config parameter or something.

 
New Post
12/11/2010 7:47 PM
 

Refer to the following post for a solution http://www.smith-consulting.com/forum...


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartUnable to create account, and login errorsUnable to create account, and login errors