Setup Admin User

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/19/2012 8: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 12:08:24 PM
Gravatar
Total Posts 18439

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.