Always revert the state of the adult login, so it'll retry adult login the next time...
| 563 | 596 | |
|---|---|---|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | private static boolean getAdultConfirmation(URLConnection uc_signin, CookieJar cj) throws IOException { |
| 111 | boolean enqueued = false; | |
| 112 | 111 | StringBuffer confirm = Http.receivePage(uc_signin); |
| 113 | 112 | ErrorManagement.dump2File("sign_in-a2.html", confirm); |
| 114 | 113 | JHTML confirmPage = new JHTML(confirm); |
| 115 | 114 | |
| 116 | 115 | List<JHTML.Form> confirm_forms = confirmPage.getForms(); |
| 116 | boolean enqueued = false; | |
| 117 | 117 | for (JHTML.Form finalForm : confirm_forms) { |
| 118 | 118 | if (finalForm.hasInput("MfcISAPICommand", "AdultSignIn")) { |
| 119 | 119 | uc_signin = cj.getAllCookiesFromPage(finalForm.getCGI(), null, false); |
| --- | --- | |
| 244 | 244 | JConfig.setConfiguration(mSiteName + ".adult", "false"); |
| 245 | 245 | cj = getSignInCookie(cj, username, password); |
| 246 | 246 | // Re-enable adult mode if logging in via non-adult mode still failed... |
| 247 | if(cj == null) { | |
| 248 | JConfig.setConfiguration(mSiteName + ".adult", "true"); | |
| 249 | } | |
| 247 | JConfig.setConfiguration(mSiteName + ".adult", "true"); | |
| 250 | 248 | return cj; |
| 251 | 249 | } |
| 252 | 250 | |
| --- | --- | |
| 261 | 259 | "eBay. Please fix it in the eBay tab in the Configuration Manager."); |
| 262 | 260 | } |
| 263 | 261 | |
| 264 | public class CaptchaException extends Exception { | |
| 262 | public static class CaptchaException extends Exception { | |
| 265 | 263 | private String _associatedString; |
| 266 | 264 | |
| 267 | 265 | public CaptchaException(String inString) { |
