diff --git a/src/Core/Grand.Domain/Common/CommonSettings.cs b/src/Core/Grand.Domain/Common/CommonSettings.cs index 1ba09927e..465504c5b 100644 --- a/src/Core/Grand.Domain/Common/CommonSettings.cs +++ b/src/Core/Grand.Domain/Common/CommonSettings.cs @@ -39,9 +39,4 @@ public class CommonSettings : ISettings /// Gets or sets to edit product where auction ended /// public bool AllowEditProductEndedAuction { get; set; } - - /// - /// Gets or sets - allow user to read "let's encrypted file" - /// - public bool AllowToReadLetsEncryptFile { get; set; } } \ No newline at end of file diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Setting/Partials/GeneralCommon.TabStoreInformationSettings.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Setting/Partials/GeneralCommon.TabStoreInformationSettings.cshtml index a8d1a6c28..bee83c203 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Setting/Partials/GeneralCommon.TabStoreInformationSettings.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Setting/Partials/GeneralCommon.TabStoreInformationSettings.cshtml @@ -253,18 +253,6 @@ -
-
- -
-
- - -
-
diff --git a/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs b/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs index 8f9d27e44..fffb72f50 100644 --- a/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs +++ b/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs @@ -94,9 +94,6 @@ public class CommonSettingsModel : BaseModel [GrandResourceDisplayName("Admin.Settings.GeneralCommon.UseSystemEmailForContactUsForm")] public bool UseSystemEmailForContactUsForm { get; set; } - [GrandResourceDisplayName("Admin.Settings.GeneralCommon.AllowToReadLetsEncryptFile")] - public bool AllowToReadLetsEncryptFile { get; set; } - [GrandResourceDisplayName("Admin.Settings.GeneralCommon.AllowToSelectStore")] public bool AllowToSelectStore { get; set; } diff --git a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml index c92c6ce0d..c1cf91358 100644 --- a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml +++ b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml @@ -10107,9 +10107,6 @@ Allow to use slash char - - Allow to read Let's Encrypt file - Allow to select admin theme diff --git a/src/Web/Grand.Web/Controllers/LetsEncryptController.cs b/src/Web/Grand.Web/Controllers/LetsEncryptController.cs deleted file mode 100644 index b00e36952..000000000 --- a/src/Web/Grand.Web/Controllers/LetsEncryptController.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Grand.Business.Core.Interfaces.Storage; -using Grand.Domain.Common; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; - -namespace Grand.Web.Controllers; - -[AllowAnonymous] -public class LetsEncryptController : Controller -{ - private readonly CommonSettings _commonSettings; - private readonly IMediaFileStore _mediaFileStore; - - public LetsEncryptController(CommonSettings commonSettings, IMediaFileStore mediaFileStore) - { - _commonSettings = commonSettings; - _mediaFileStore = mediaFileStore; - } - - public virtual async Task Index(string fileName) - { - if (!_commonSettings.AllowToReadLetsEncryptFile) - return Content(""); - - if (fileName == null) - return Content(""); - - var filepath = _mediaFileStore.Combine("assets", "acme", Path.GetFileName(fileName)); - var fileInfo = await _mediaFileStore.GetFileInfo(filepath); - if (fileInfo != null) return File(await _mediaFileStore.ReadAllText(filepath), "text/plain"); - return Content(""); - } -} \ No newline at end of file