Ejemplo n.º 1
0
  public void accountGet() throws Exception {
    if (getUsername().indexOf("&") != -1) {
      setUsername(getUsername().replaceAll("&", ""));
      FacesContext.getCurrentInstance()
          .addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Access Denied!", ""));
      //   return;
    }
    String account = "&Command=AccountsGet";
    String user = "******" + getUsername();

    String accountParam = account + user;
    api.sendPost(url, accountParam);
  }
Ejemplo n.º 2
0
 public void sendPass() {
   if (getUsername().indexOf("&") != -1) {
     setUsername(getUsername().replaceAll("&", ""));
     FacesContext.getCurrentInstance()
         .addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Access Denied!", ""));
     return;
   } else if (getEmail().indexOf("&") != -1) {
     setEmail(getEmail().replaceAll("&", ""));
     FacesContext.getCurrentInstance()
         .addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Access Denied!", ""));
     return;
   }
   String account = "&Command=AccountsEdit";
   String player = getUsername();
   String pl = "&Player=" + player;
   String accountParam = account + pl + "&PW=" + getPassword();
   api.sendPost(url, accountParam);
 }