/*     */   public void login(String paramString1, String paramString2) {
/*     */     try {
/*  92 */       HashMap localHashMap = new HashMap();
/*  93 */       localHashMap.put("user", paramString1);
/*  94 */       localHashMap.put("password", paramString2);
/*  95 */       localHashMap.put("version", Integer.valueOf(13));
/*  96 */       String str = Util.executePost("http://login.tunacraft.com/", localHashMap);
/*  97 */       if (str == null) {
/*  98 */         showError("Can't connect to Apex servers");
/*  99 */         this.loginForm.setNoNetwork(false);
/* 100 */         return;
/*     */       }
/* 102 */       if (!str.contains(":")) {
/* 103 */         boolean bool = false;
/*     */ 
/* 105 */         if (str.trim().equals("Bad login")) {
/* 106 */           showError("Login failed");
/* 107 */         } else if (str.trim().equals("Old version")) {
/* 108 */           this.loginForm.setOutdated();
/* 109 */           showError("Outdated launcher");
/* 110 */         } else if (str.trim().equals("User not premium")) {
/* 111 */           showError(str);
/* 112 */           bool = true;
/*     */         } else {
/* 114 */           showError(str);
/*     */         }
/* 116 */         this.loginForm.setNoNetwork(bool);
/* 117 */         return;
/*     */       }
/* 119 */       String[] arrayOfString = str.split(":");
/*     */ 
/* 121 */       this.launcher = new Launcher();
/* 122 */       this.launcher.customParameters.putAll(this.customParameters);
/* 123 */       this.launcher.customParameters.put("userName", paramString1);
/* 124 */       this.launcher.customParameters.put("latestVersion", arrayOfString[0].trim());
/* 125 */       this.launcher.customParameters.put("downloadTicket", arrayOfString[1].trim());
/* 126 */       this.launcher.customParameters.put("sessionId", arrayOfString[3].trim());
/* 127 */       this.launcher.init();
/*     */ 
/* 129 */       removeAll();
/* 130 */       add(this.launcher, "Center");
/* 131 */       validate();
/* 132 */       this.launcher.start();
/* 133 */       this.loginForm.loginOk();
/* 134 */       this.loginForm = null;
/* 135 */       setTitle("Apex");
/*     */     } catch (Exception localException) {
/* 137 */       localException.printStackTrace();
/* 138 */       showError(localException.toString());
/* 139 */       this.loginForm.setNoNetwork(false);
/*     */     }
/*     */   }