diff --git a/app/Http/Controllers/DocumentController.php b/app/Http/Controllers/DocumentController.php index 504c82e9..af9c262a 100644 --- a/app/Http/Controllers/DocumentController.php +++ b/app/Http/Controllers/DocumentController.php @@ -93,7 +93,13 @@ public function get(int $id) '403 Forbidden' ); + // get path $path = storage_path('docs/' . $id); + + // check file exists + abort_if(!file_exists($path), Response::HTTP_NOT_FOUND, '404 Not Found'); + + // get file content $file_contents = file_get_contents($path); return response($file_contents) diff --git a/public/images/deming.png b/public/images/deming.png new file mode 100644 index 00000000..ab1fc53a Binary files /dev/null and b/public/images/deming.png differ diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 0b1f91af..a7051890 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -10,6 +10,32 @@ + +
@@ -22,8 +48,6 @@ class="login-form bg-white p-6 mx-auto border fg-black win-shadow" data-on-error-form="invalidForm" data-on-validate-form="validateForm"> @csrf - -