From ccbe20030086ed228a6e3e216307e52619796aba Mon Sep 17 00:00:00 2001 From: Floorb <132411956+Neetpone@users.noreply.github.com> Date: Thu, 7 Sep 2023 13:05:32 -0400 Subject: [PATCH] misc: disable passwords for new pastes --- public/index.php | 4 ++-- theme/bulma/main.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/index.php b/public/index.php index 0cd1435..86cde3d 100644 --- a/public/index.php +++ b/public/index.php @@ -122,13 +122,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $paste_code = 'green'; } - if (!empty($paste_password)) { + if (!empty($paste_password) && $editing) { if (!$current_user) { $error = 'You must be logged in to create a password-protected paste.'; goto OutPut; } - $paste_password = password_hash($paste_password, PASSWORD_DEFAULT); + // $paste_password = password_hash($paste_password, PASSWORD_DEFAULT); } else { $paste_password = null; } diff --git a/theme/bulma/main.php b/theme/bulma/main.php index 7a01d02..350e1c5 100644 --- a/theme/bulma/main.php +++ b/theme/bulma/main.php @@ -137,13 +137,13 @@ -