HostUser change is not allowed in silent install

This commit is contained in:
Pavel Vesely 2020-04-17 22:29:55 +02:00
parent 209f6db0fb
commit 69ceb5dd42
2 changed files with 3 additions and 3 deletions

View File

@ -348,10 +348,10 @@ namespace Oqtane.Infrastructure
var user = new User
{
SiteId = site.SiteId,
Username = GetInstallationConfig(SettingKeys.HostUserKey, Constants.HostUser),
Username = Constants.HostUser,
Password = password,
Email = email,
DisplayName = GetInstallationConfig(SettingKeys.HostUserKey, Constants.HostUser),
DisplayName = Constants.HostUser,
};
CreateHostUser(folders, userRoles, roles, users, identityUserManager, user);
tenant.IsInitialized = true;

View File

@ -2,9 +2,9 @@
"ConnectionStrings": {
"DefaultConnection": ""
},
"Runtime" : "Server",
"Installation": {
"DefaultAlias": "",
"HostUser": "",
"HostPassword": "",
"HostEmail": "",
"SiteTemplate": "",