Hi, after upgrading from v1.9 and running 2.0 when I go to login with my admin account it looks like its loggin me in then ill be redirected to the home page but it doesn't show that in the upper right with my email address and still says Log In with no admin link.
Checking the database the password and salt are the same for both email accounts compared to v1.9 db and these accounts are assigned the admin role so that looks ok.
If I debug the Customer Controller in ActionResult Login(LoginModel model, string returnUrl) validate customer returns true and the customer object is populated. As far as I can tell the customer role is Id 1 which is admin.
Even if I click on my account it returns me to the login page.
Looking further, by the time it hits the commonController / ActionResult HeaderLinks() there is no customer at all so isAuthenticated and displayadminlink are false.
I am having the same problem on a fresh install and cannot login as admin. User login works when I try to login as administrator it just comes back to the login page.
Could you do a quick check and look in your customer table. Look at the user account that you created when doing the install. Is the password in plain text and the passwordformat is zero not 1, also is teh passwordSalt blank?
At first I thought it was that I used the same email username as what was allready in v1.9 but I created a new one and same thing happens.
with my issue no accounts can log in admin or customers.
During the conversion some how all of the roles didn't get converted properly. Both the old admin and the new one that the installer created had only the admin role. Installing a fresh version of nop and new db assigns both the admin and registered which you need both to be true to make it through the authentication
So I added a registered role in addition to the admin role and I was able to log in. Looking at a fresh install the admin customer is in registered and admin roles so for some reason something is different going from a conversion. has anyone upgraded from 1.9 to 2.0 without this issue?
Yes thats what I found too, if you entered a new username & password at the upgrade/install screen, these credentials do not work, you have to use the credentials from your original installation.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.