-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
OSOE-893: Update shape type in AddTenantReloadWarning
- Loading branch information
Showing
9 changed files
with
98 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,23 +46,14 @@ public static OrchardCoreBuilder ConfigureHostingDefaults( | |
.AddValueIfKeyNotExists("System", "Information") | ||
.AddValueIfKeyNotExists("Microsoft", "Information"); | ||
|
||
// Orchard Core 1.8 and prior, this can be removed after an Orchard Core upgrade to 2.0. | ||
// OrchardCore_Email_Smtp below is 2.0+. | ||
// Orchard Core 1.8 and prior section. Keeping it here for leftover configs, because it keeps working under | ||
// 2.0 too | ||
var oc18SmtpSection = ocSection.GetSection("SmtpSettings"); | ||
|
||
if (oc18SmtpSection["Host"] == null) | ||
{ | ||
oc18SmtpSection["Host"] = "127.0.0.1"; | ||
oc18SmtpSection["RequireCredentials"] = "false"; | ||
oc18SmtpSection["Port"] = "25"; | ||
} | ||
|
||
oc18SmtpSection.AddValueIfKeyNotExists("DefaultSender", "[email protected]"); | ||
|
||
var smtpSection = ocSection.GetSection("OrchardCore_Email_Smtp"); | ||
|
||
if (smtpSection["Host"] == null) | ||
if (oc18SmtpSection["Host"] == null && smtpSection["Host"] == null) | ||
{ | ||
smtpSection["IsEnabled"] = "true"; | ||
smtpSection["Host"] = "127.0.0.1"; | ||
smtpSection["RequireCredentials"] = "false"; | ||
smtpSection["Port"] = "25"; | ||
|
@@ -105,7 +96,6 @@ public static OrchardCoreBuilder ConfigureHostingDefaults( | |
|
||
builder | ||
.AddDatabaseShellsConfigurationIfAvailable(webApplicationBuilder.Configuration) | ||
.ConfigureSmtpSettings(overrideAdminSettings: false) | ||
.ConfigureSecurityDefaultsWithStaticFiles(allowInlineStyle: true); | ||
|
||
return builder; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters