From 6d5281958b491155f0c79881ac7ddbdcd137bf20 Mon Sep 17 00:00:00 2001 From: Piotr Piastucki Date: Fri, 3 Jul 2015 07:35:09 +0000 Subject: Open Browser Window with auth in every case when there is HTTP 200. git-svn-id: http://svn.miranda-ng.org/main/trunk@14481 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_auth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp index 417acf320f..17b18abb11 100644 --- a/protocols/MSN/src/msn_auth.cpp +++ b/protocols/MSN/src/msn_auth.cpp @@ -901,7 +901,7 @@ int CMsnProto::MSN_AuthOAuth(void) else { /* There may be a problem with login, i.e. M$ security measures. Open up browser * window with same URL in order to let user correct this */ - if (nlhrReply->resultCode == 200 && nlhrReply->pData && strstr(nlhrReply->pData, "ar/cancel")) { + if (nlhrReply->resultCode == 200 && nlhrReply->pData) { url.Format("https://login.live.com/oauth20_authorize.srf?%s", pszPostParams); Utils_OpenUrl(url); } -- cgit v1.2.3