Ejemplo n.º 1
0
        /**
         * Method declaration
         *
         *
         * @param c
         * @param channel
         *
         * @return
         *
         * @throws Exception
         */
        private Result processConnect(Tokenizer c,
                                      Channel channel)
        {
            c.getThis("USER");

            string username = c.getstringToken();

            c.getThis("PASSWORD");

            string password = c.getstringToken();
            User   user     = aAccess.getUser(username, password);

            channel.commit();
            channel.setUser(user);

            return(new Result());
        }