Examples of LoginController


Examples of com.imaginea.mongodb.controllers.LoginController

    private String testUsername = "name";
    private String testPassword = "pass";

    @Before
    public void instantiateTestClass() {
        loginController = new LoginController();
    }
View Full Code Here

Examples of com.kolakcc.loljclient.controller.LoginController

                        }
          }
          if (found) {
            System.out.println("This seems to be a valid league directory.");
            Configuration.setLeagueDirectory(selectedLeagueDirectory);
            loginController = new LoginController();
          } else {
            JOptionPane.showMessageDialog(dummy, "This directory doesn't seem to be a valid League of Legends Directory. Does it have lol.launcher.exe in it?.", "Error", JOptionPane.ERROR_MESSAGE);
            System.exit(0);
          }
        }
        File itemsFolder = FileSystem.getFile("app://img/items/");
        if (itemsFolder.list().length < 10) {
          new SWFExtractor();
        }
        loginController = new LoginController();
      }
    });
  }
View Full Code Here

Examples of com.l2jfrozen.loginserver.LoginController

    _ncotp = decrypted[0x7c];
    _ncotp |= decrypted[0x7d] << 8;
    _ncotp |= decrypted[0x7e] << 16;
    _ncotp |= decrypted[0x7f] << 24;

    LoginController lc = LoginController.getInstance();
    L2LoginClient client = getClient();
    InetAddress address = getClient().getConnection().getInetAddress();
    if(address == null) {
      _log.warning("Socket is not connected: " + client.getAccount());
      client.close(LoginFailReason.REASON_SYSTEM_ERROR);
      return;
    }
    String addhost = address.getHostAddress();
    AuthLoginResult result = lc.tryAuthLogin(_user, _password, getClient());

    switch(result)
    {
      case AUTH_SUCCESS:
        client.setAccount(_user);
        client.setState(LoginClientState.AUTHED_LOGIN);
        client.setSessionKey(lc.assignSessionKeyToClient(_user, client));
        if(Config.SHOW_LICENCE)
        {
          client.sendPacket(new LoginOk(getClient().getSessionKey()));
        }
        else
        {
          getClient().sendPacket(new ServerList(getClient()));
        }
        if(Config.ENABLE_DDOS_PROTECTION_SYSTEM) {
          String deny_comms = Config.DDOS_COMMAND_BLOCK;
          deny_comms = deny_comms.replace("$IP", addhost);
         
          try
          {
            Runtime.getRuntime().exec(deny_comms);
            if(Config.ENABLE_DEBUG_DDOS_PROTECTION_SYSTEM) {
              _log.info("Accepted IP access GS by "+addhost);
              _log.info("Command is"+deny_comms);
            }
         
          }
          catch(IOException e1)
          {
            _log.info("Accepts by ip "+addhost+" no allowed");
            _log.info("Command is"+deny_comms)
          }
         
        }
       
        break;
      case INVALID_PASSWORD:
        client.close(LoginFailReason.REASON_USER_OR_PASS_WRONG);
        break;
      case SERVER_MAINTENANCE:
              client.close(LoginFailReason.REASON_SERVER_MAINTENANCE);
              break;
      case ACCOUNT_BANNED:
        client.close(new AccountKicked(AccountKickedReason.REASON_PERMANENTLY_BANNED));
        break;
      case ALREADY_ON_LS:
        L2LoginClient oldClient;
        if((oldClient = lc.getAuthedClient(_user)) != null)
        {
          // kick the other client
          oldClient.close(LoginFailReason.REASON_ACCOUNT_IN_USE);
          lc.removeAuthedLoginClient(_user);
        }
        oldClient = null;
        break;
      case ALREADY_ON_GS:
        GameServerInfo gsi;
        if((gsi = lc.getAccountOnGameServer(_user)) != null)
        {
          client.close(LoginFailReason.REASON_ACCOUNT_IN_USE);

          // kick from there
          if(gsi.isAuthed())
View Full Code Here

Examples of com.mjs_svc.possibility.controllers.LoginController

        });
        submit.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                LoginController login = new LoginController();
                if (login.doLogin(username.getText(), new String(password.getPassword()))) {
                    if (a instanceof UserListener) {
                        a.setUser(login.getUser());
                        StatusContainer.getStatusBar().setStatus(
                                "Logged in!  Welcome, " + login.getUser().getUsername());
                        finish();
                    }
                } else {
                    username.setText("");
                    username.requestFocus();
View Full Code Here

Examples of com.sk89q.skmcl.swing.LoginController

    public void launchApplication(Window owner, ExecutorWorkerService executor, Profile profile) {
        profile.setLastLaunchDate(new Date());
        Persistence.commitAndForget(profile);
        getProfiles().notifyUpdate();

        LoginController loginDialog = new LoginController(owner, this);
        loginDialog.setVisible(true);
        Identity identity = loginDialog.getIdentity();

        if (identity != null) {
            LaunchWorker task = new LaunchWorker(profile, identity);
            ListenableFuture<LaunchedProcess> future = executor.submit(task);
            SwingHelper.addErrorDialogCallback(future, owner);
View Full Code Here

Examples of de.scoopgmbh.copper.monitoring.client.ui.login.LoginController

 
  protected FxmlForm<LoginController> loginForm;

  public Form<LoginController> createLoginForm(){
    if (loginForm==null){
      loginForm = new FxmlForm<LoginController>("login.title", new LoginController(this,settingsModelSingleton), messageProvider,  new BorderPaneShowFormStrategie(mainPane));
    }
    return loginForm;
  }
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.janeway.gui.login.LoginController

          gui.setVisible(true);
        }
        else {
          loginGui.setVisible(true);
          gui.setVisible(false);
          loginGui.getConnectButton().addActionListener(new LoginController(gui, loginGui));
        }
      }
    });
  }
View Full Code Here

Examples of l2p.loginserver.LoginController

    _password = new String(decrypted, 0x6C, 16).trim();
    _ncotp = decrypted[0x7c];
    _ncotp |= decrypted[0x7d] << 8;
    _ncotp |= decrypted[0x7e] << 16;
    _ncotp |= decrypted[0x7f] << 24;
    LoginController lc = LoginController.getInstance();
    Status status = lc.tryAuthLogin(_user, _password, client);
    if(status.state == State.IN_USE)
    {
      L2LoginClient oldClient = lc.getAuthedClient(_user);
      // кикаем другого клиента, подключенного к логину
      if(oldClient != null)
      {
        oldClient.close(LoginFailReason.REASON_ACCOUNT_IN_USE);
      }
      if(lc.isAccountInLoginServer(_user))
      {
        lc.removeAuthedLoginClient(_user).close(LoginFailReason.REASON_ACCOUNT_IN_USE);
      }
      status.state = State.VALID;
    }
    if(status.state == State.VALID)
    {
      client.setAccount(_user);
      client.setState(LoginClientState.AUTHED_LOGIN);
      client.setSessionKey(lc.assignSessionKeyToClient());
      lc.addAuthedLoginClient(_user, client);
      client.setBonus(status.bonus, status.bonus_expire);
      client.sendPacket(new LoginOk(client.getSessionKey()));
    }
    else if(status.state == State.WRONG)
    {
View Full Code Here

Examples of net.cis.client.main.ctrl.LoginController

        NiftyJmeDisplay niftyDisplay = new NiftyJmeDisplay(
            gameApp.getAssetManager(), gameApp.getInputManager(),
            gameApp.getAudioRenderer(), gameApp.getGuiViewPort());
        gameApp.getGuiViewPort().addProcessor(niftyDisplay);

        LoginController loginCtrl = new LoginController(gameApp,
            niftyDisplay);
        if (ResourceConstants
            .getDevBoolProp(ResourceConstants.DEV_LOGIN_ENABLED)) {
          LoginUIController loginUIController = new LoginUIController(
              loginCtrl);
          gameApp.getInputManager().setCursorVisible(true);
          niftyDisplay.getNifty().fromXml("login/loginUI.xml",
              "loginUI", loginUIController);
        } else {
          loginCtrl.startGame(null);
        }
      }
    };
  }
View Full Code Here

Examples of net.sf.l2j.loginserver.LoginController

    _ncotp = decrypted[0x7c];
    _ncotp |= decrypted[0x7d] << 8;
    _ncotp |= decrypted[0x7e] << 16;
    _ncotp |= decrypted[0x7f] << 24;

    LoginController lc = LoginController.getInstance();
    L2LoginClient client = getClient();
    AuthLoginResult result = lc.tryAuthLogin(_user, _password, getClient());

    switch (result)
    {
      case AUTH_SUCCESS:
        client.setAccount(_user);
        client.setState(LoginClientState.AUTHED_LOGIN);
        client.setSessionKey(lc.assignSessionKeyToClient(_user, client));
        if (Config.SHOW_LICENCE)
        {
          client.sendPacket(new LoginOk(getClient().getSessionKey()));
        }
        else
        {
          getClient().sendPacket(new ServerList(getClient()));
        }
        break;
      case INVALID_PASSWORD:
        client.close(LoginFailReason.REASON_USER_OR_PASS_WRONG);
        break;
      case ACCOUNT_BANNED:
        client.close(new AccountKicked(AccountKickedReason.REASON_PERMANENTLY_BANNED));
        break;
      case ALREADY_ON_LS:
        L2LoginClient oldClient;
        if ((oldClient = lc.getAuthedClient(_user)) != null)
        {
          // kick the other client
          oldClient.close(LoginFailReason.REASON_ACCOUNT_IN_USE);
          lc.removeAuthedLoginClient(_user);
        }
        break;
      case ALREADY_ON_GS:
        GameServerInfo gsi;
        if ((gsi = lc.getAccountOnGameServer(_user)) != null)
        {
          client.close(LoginFailReason.REASON_ACCOUNT_IN_USE);

          // kick from there
          if (gsi.isAuthed())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.