mirror of
https://github.com/SabreTools/SabreTools.RedumpLib.git
synced 2026-09-21 14:34:49 +00:00
Database downloads are login-gated
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user