diff --git a/public/report.php b/public/report.php index 42e9a28..30050af 100644 --- a/public/report.php +++ b/public/report.php @@ -7,6 +7,7 @@ use PonePaste\Models\Paste; $error = null; if ($current_user === null) { + flashError('To prevent abuse, you must be logged in in order to report a paste.'); header("Location: /login"); die(); } diff --git a/theme/bulma/login.php b/theme/bulma/login.php index 2abc75d..1c06d0b 100644 --- a/theme/bulma/login.php +++ b/theme/bulma/login.php @@ -20,55 +20,8 @@