From a82e6a53fceca8b42802e82dccb29d2352df6008 Mon Sep 17 00:00:00 2001 From: Piotrekol <4990365+Piotrekol@users.noreply.github.com> Date: Fri, 1 May 2020 20:08:21 +0200 Subject: [PATCH] Fix: osu login detection --- .../Modules/DownloadManager/API/CookieAwareWebClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CollectionManagerExtensionsDll/Modules/DownloadManager/API/CookieAwareWebClient.cs b/CollectionManagerExtensionsDll/Modules/DownloadManager/API/CookieAwareWebClient.cs index 96dde0f..636c510 100644 --- a/CollectionManagerExtensionsDll/Modules/DownloadManager/API/CookieAwareWebClient.cs +++ b/CollectionManagerExtensionsDll/Modules/DownloadManager/API/CookieAwareWebClient.cs @@ -52,7 +52,7 @@ public bool Login(string loginPageAddress, string loginData) responseText = sr.ReadToEnd(); } response.Close(); - return !(responseText.IndexOf("Log me on automatically each visit", StringComparison.InvariantCultureIgnoreCase) > 0); + return !(responseText.IndexOf("Sign in", StringComparison.InvariantCultureIgnoreCase) > 0); } public CookieAwareWebClient(CookieContainer container)