From a95bf3a5712951eff5d4d52f418468e901e1eda6 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Fri, 4 Oct 2024 03:54:19 +0200 Subject: Removed the password in download source check (#2649) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/tweaker/DownloadSourceChecker.java | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java index 63a92849b..2c417909e 100644 --- a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java +++ b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java @@ -18,15 +18,6 @@ public class DownloadSourceChecker { private static final String GITHUB_REPO = "511310721"; private static final String GITHUB_REPO_TEXT = "repo_id=" + GITHUB_REPO; private static final String MODRINTH_URL = "/data/byNkmv5G/"; - private static final String THE_PASSWORD = "danger"; - - private static final String[] PASSWORD_POPUP = { - "If someone asks you to type in here,", - "", - "the likelihood of them ratting you is high!", - "", - "Enter the password:" - }; private static final String[] SECURITY_POPUP = { "The file you are trying to run is hosted on a non-trusted domain.", @@ -77,17 +68,6 @@ public class DownloadSourceChecker { JPanel buttons = new JPanel(); - buttons.add(TweakerUtils.createButton( - "Skip (Trusted Users Only)", - () -> { - String password = JOptionPane.showInputDialog(frame, String.join("\n", PASSWORD_POPUP)); - if (password != null && password.equals(THE_PASSWORD)) { - close.set(false); - frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING)); - } - } - )); - buttons.add(TweakerUtils.createButton( "Close", () -> { -- cgit