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);