From 32acd054f4338c0b62f7040e3374b931302482ca Mon Sep 17 00:00:00 2001 From: Slendy Date: Sun, 30 Jan 2022 23:06:05 -0600 Subject: [PATCH] Make suggested changes --- ProjectLighthouse/Controllers/ResourcesController.cs | 4 ---- ProjectLighthouse/Pages/LoginForm.cshtml | 11 ++++++----- ProjectLighthouse/Pages/PhotosPage.cshtml.cs | 3 ++- ProjectLighthouse/Pages/RegisterForm.cshtml | 8 ++++---- ProjectLighthouse/Pages/SlotsPage.cshtml.cs | 3 ++- ProjectLighthouse/Pages/UsersPage.cshtml.cs | 4 +++- ProjectLighthouse/Program.cs | 1 + 7 files changed, 18 insertions(+), 16 deletions(-) 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 @@