Moving nop Installation

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
I was trying a few tests before I attempted to move a seriously modified version of nop 3.3 to a clean 3.7
I wanted to see how I could move customers.
As a test I created a Customer in the 3.3.
I then in the admin of 3.7 set the Encryption Private Key to match the key from 3.3 and then with a bit of SQL inserted a duplicate row into the customer table in 3.7 so it matched exactly the newly created row in 3.3.

I then restarted 3.7 and attempted to login using this new login and it fails?

Any idea what I'm doing wrong?

Thanks
Rob
7 years ago
Hi Rob,
Hope this link will help you to moving from 3.3 to 3.7. You need to go step by step from nop3.3 to 3.7.
7 years ago
I understand that but I need to be able to recover a situation where we have issues after. Part of this is logins and I don't understand why my test would fail. I must be doing something silly.
Thanks
Rob
7 years ago
For login encryption and decryption using same PasswordSalt will always work for both version. So if you have working password in 3.3 then it will sure work in 3.7 as well.
7 years ago
That is what I assumed, I have an exact duplicate of the Customer table row including the Salt and I've set the Private Key to be the same in both.

Am I missing something because it still won't login?
7 years ago
If your just testing the password then run in Visual Studio debugging mode and set a breakpoint in the Nop.Web/Controllers/CustomController on line 655 - what ever else is going on you may be able to see a successful login here.

- but the suggestion of following the upgrade path is correct, you must upgrade the database between each version using the scripts  and then load a fresh 3.70 with a properly upgraded database.

also a question to other devs: is the password saved using the machine encryption key stored in IIS or just the Triple Des encryption key used in nop?
7 years ago
Just to close off the question if anyone else is trying this.
I stupidly didn't insert a row for the user into the Customer_CustomerRole_Mapping table so it was not appearing up as registered. Once I inserted the mapping here it worked a charm.

Thanks for the help.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.