This project is read-only.
1

Resolved

Cannot login with superuser

description

I have just installed DNN 8.0 and have run the TurboScripts as per the instructions. However I cannot login as the superuser now.

It seems to be linked to GetUserByEmail which is returning -1 for the email address of the superuser account.

The UserID for my superuser is 1 in the DB.

There is no PortalID associated with the superuser and I am now unsure of what to do.

comments

leupold wrote Jan 3 at 3:49 PM

in the stored procedure, please try replacing the two lines
WHERE (U.PortalId = {databaseOwner}{objectQualifier}MasterPortalId(@PortalID) OR IsNull(@PortalID, -1) = -1)
by
WHERE (U.PortalId = {databaseOwner}{objectQualifier}MasterPortalId(@PortalID) OR U.PortalID = -1 OR IsNull(@PortalID, -1) = -1)
Restart DNN and please report back your results.

naineshmehta wrote Jan 4 at 11:21 AM

Hi Seb, sorry I wrote up the wrong SP, the SP that is the problem is GetSingleUserByEmail (the SP used by the login functionality)

leupold wrote Jan 7 at 7:24 PM

Hi, would you mind to check, whether there is a record for this user and Portal in Userportals table, thank you.

naineshmehta wrote Jan 8 at 4:32 PM

I can confirm the user DOES NOT exist in the UserPortals table.

leupold wrote Nov 13 at 2:04 PM

should be fixed in latest release