mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Inform Check users if credentials invalid
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.IO;
|
||||
using DICUI.Data;
|
||||
using DICUI.Utilities;
|
||||
using DICUI.Web;
|
||||
|
||||
namespace DICUI.Check
|
||||
{
|
||||
@@ -101,6 +102,19 @@ namespace DICUI.Check
|
||||
var progress = new Progress<Result>();
|
||||
progress.ProgressChanged += ProgressUpdated;
|
||||
|
||||
// If credentials are invalid, alert the user
|
||||
if (!string.IsNullOrWhiteSpace(username) && !string.IsNullOrWhiteSpace(password))
|
||||
{
|
||||
using (CookieAwareWebClient wc = new CookieAwareWebClient())
|
||||
{
|
||||
RedumpAccess access = new RedumpAccess();
|
||||
if (access.RedumpLogin(wc, username, password))
|
||||
Console.WriteLine("Redump username and password accepted!");
|
||||
else
|
||||
Console.WriteLine("Redump username and password denied!");
|
||||
}
|
||||
}
|
||||
|
||||
// Loop through all the rest of the args
|
||||
for (int i = startIndex; i < args.Length; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user