DOWNLOAD DEMO
Current Version: 2.3.9.7 2013-04-30
Need a hand? Join the community.

Setup Admin User

This thread is closed to new posts. You must sign in to post in the forums.
4/19/2012 9:28:19 AM
Gravatar
Total Posts 88

Setup Admin User

Hi,

I´ve found this issue.

On Web.config i found this keys:

 <add key="preConfigUser" value="Admin" />
<add key="preConfigPasswd" value="EPTAdminUser" />

but when setup runs and the function CreateRequiredRolesAndAdminUser

execute this code:

 SiteUser adminUser = new SiteUser(site, overridRelatedSiteMode);

adminUser.Email = "admin" + siteDifferentiator + "@admin.com";

adminUser.Name = "Admin";          

adminUser.LoginName = "admin" + siteDifferentiator;

adminUser.Password = "admin";

this function doesnt need to get adminUser.Password and adminUser.LoginName to the web.config keys?

thanks

 

 

 

4/19/2012 1:08:24 PM
Gravatar
Total Posts 16569

Re: Setup Admin User

There is no such key in mojoPortal Web.config. It does not need to get that from Web.config. It always uses admin@admin.com and the password admin when setting up a new site except in related sites mode then the email will vary by site id but not the password.

There is no reason to make it come from web.config it keeps it simple for support that a new site always has the same username and password for the newly created user and it should be changed by the user to their own email and password right after the site is created. If it may vary by web.config it would be more difficult to provide support for people who don't know how to login after they create a new site or install mojoPortal.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.

mojoPortal Hosting Made Easy

Go Mobile with mojoPortal and Mobile Kit Pro!