예제 #1
0
        public void SignUp()
        {
            SQLMethods SQLMethod = new SQLMethods();
            string     username;
            string     password;

            Console.WriteLine("\nWrite a username\n");
            username = Console.ReadLine();
            username = username ?? "";

            Console.WriteLine("\nWrite a password\n");
            password = Console.ReadLine();
            password = password ?? "";

            SQLMethod.AddSQLUser(username, password);
        }
예제 #2
0
        private void WsServer_NewMessageReceived(WebSocketSession session, string value)
        {
            Methods    method    = new Methods();
            SQLMethods SQLMethod = new SQLMethods();

            string[] splittet = value.Split(',');
            if (SQLMethod.SQLLogin(splittet[0], splittet[1]))
            {
                session.Send("Luk");
                waiting = false;
                method.FinalPage(splittet[0]);
            }
            else
            {
            }
        }