diff --git a/ProjectLighthouse/Controllers/ResourcesController.cs b/ProjectLighthouse/Controllers/ResourcesController.cs index 47e7f26d..48e17903 100644 --- a/ProjectLighthouse/Controllers/ResourcesController.cs +++ b/ProjectLighthouse/Controllers/ResourcesController.cs @@ -57,10 +57,6 @@ public class ResourcesController : ControllerBase { string path = $"png/{hash}.png"; - if (!IOFile.Exists("png")) - { - FileHelper.EnsureDirectoryCreated(Path.Combine(Environment.CurrentDirectory, "png")); - } if (IOFile.Exists(path)) { return this.File(IOFile.OpenRead(path), "image/png"); diff --git a/ProjectLighthouse/Pages/LoginForm.cshtml b/ProjectLighthouse/Pages/LoginForm.cshtml index b04b21bc..53e672df 100644 --- a/ProjectLighthouse/Pages/LoginForm.cshtml +++ b/ProjectLighthouse/Pages/LoginForm.cshtml @@ -11,9 +11,10 @@