From d18e9e8f31f2c24e374dbd28b86d6ae3df858de7 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 26 Jul 2026 20:11:05 -0400 Subject: [PATCH] Database downloads are login-gated --- SabreTools.RedumpLib/Web/Client.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SabreTools.RedumpLib/Web/Client.cs b/SabreTools.RedumpLib/Web/Client.cs index fc9e3a0..ce12f03 100644 --- a/SabreTools.RedumpLib/Web/Client.cs +++ b/SabreTools.RedumpLib/Web/Client.cs @@ -970,6 +970,13 @@ namespace SabreTools.RedumpLib.Web { if (Debug) Console.WriteLine($"DEBUG: DownloadDatabase(\"{outDir}\", {subfolder})"); + // If the user is not logged in, this is invalid + if (!_loggedIn) + { + Console.Error.WriteLine("Database download requires valid login credentials!"); + return false; + } + // Determine the database URL string dbUri = UrlBuilder.BuildDownloadsUrl(database: true);