Changeset 317
- Timestamp:
- Apr 19, 2018, 1:32:04 PM (7 years ago)
- Location:
- binary-improvements/MapRendering
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/ModInfo.xml
r316 r317 5 5 <Description value="Render the game map to image map tiles as it is uncovered" /> 6 6 <Author value="Christian 'Alloc' Illy" /> 7 <Version value="2 4" />7 <Version value="25" /> 8 8 <Website value="http://7dtd.illy.bz" /> 9 9 </ModInfo> -
binary-improvements/MapRendering/Web/OpenID.cs
r316 r317 20 20 21 21 private static readonly bool verboseSsl = false; 22 private static bool debugOpenId = false; 22 23 23 24 static OpenID () { 25 for (int i = 0; i < System.Environment.GetCommandLineArgs ().Length; i++) { 26 if (System.Environment.GetCommandLineArgs () [i].EqualsCaseInsensitive ("-debugopenid")) { 27 debugOpenId = true; 28 } 29 } 30 24 31 ServicePointManager.ServerCertificateValidationCallback = (srvPoint, certificate, chain, errors) => { 25 32 if (errors == SslPolicyErrors.None) { … … 118 125 if (mode == "error") { 119 126 Log.Warning ("Steam OpenID login error: " + getValue (_req, "openid.error")); 127 if (debugOpenId) { 128 PrintOpenIdResponse (_req); 129 } 120 130 return 0; 121 131 } … … 127 137 } else { 128 138 Log.Warning ("Steam OpenID login result did not give a valid SteamID"); 139 if (debugOpenId) { 140 PrintOpenIdResponse (_req); 141 } 129 142 return 0; 130 143 } … … 190 203 } 191 204 205 private static void PrintOpenIdResponse (HttpListenerRequest _req) { 206 NameValueCollection nvc = _req.QueryString; 207 for (int i = 0; i < nvc.Count; i++) { 208 Log.Out (" " + nvc.GetKey (i) + " = " + nvc [i]); 209 } 210 } 211 192 212 } 193 213 }
Note:
See TracChangeset
for help on using the changeset viewer.