diff --git a/Oqtane.Client/Modules/Admin/Sites/Add.razor b/Oqtane.Client/Modules/Admin/Sites/Add.razor
index f369df79..cdcef8da 100644
--- a/Oqtane.Client/Modules/Admin/Sites/Add.razor
+++ b/Oqtane.Client/Modules/Admin/Sites/Add.razor
@@ -147,13 +147,13 @@ else
@DatabaseConfigComponent;
}
-
+
@@ -186,7 +186,7 @@ else
private string _tenantName = string.Empty;
- private string _hostUserName = UserNames.Host;
+ private string _hostusername = string.Empty;
private string _hostpassword = string.Empty;
private string _name = string.Empty;
@@ -303,7 +303,7 @@ else
// validate host credentials
var user = new User();
user.SiteId = PageState.Site.SiteId;
- user.Username = UserNames.Host;
+ user.Username = _hostusername;
user.Password = _hostpassword;
user = await UserService.LoginUserAsync(user, false, false);
if (user.IsAuthenticated)
@@ -320,8 +320,9 @@ else
config.TenantName = _tenantName;
config.DatabaseType = database.DBType;
config.ConnectionString = connectionString;
- config.HostEmail = user.Email;
+ config.HostUsername = _hostusername;
config.HostPassword = _hostpassword;
+ config.HostEmail = user.Email;
config.HostName = user.DisplayName;
config.IsNewTenant = true;
}
diff --git a/Oqtane.Client/Resources/Modules/Admin/Sites/Add.resx b/Oqtane.Client/Resources/Modules/Admin/Sites/Add.resx
index 6473d0ff..b939b88a 100644
--- a/Oqtane.Client/Resources/Modules/Admin/Sites/Add.resx
+++ b/Oqtane.Client/Resources/Modules/Admin/Sites/Add.resx
@@ -1,4 +1,4 @@
-
+