Пример #1
0
        public void InsertUsers()
        {
            string sql = SQLHelper.GetSqlCommand("srdjan", "tomic", "admin", "pass", "saltt", "hash", "admin");

            SQLHelper.ExecuteCommand(sql);

            string sql1 = SQLHelper.GetSqlCommand("srdjan", "topic", "user", "pass", "saltt", "hash", "regular");

            SQLHelper.ExecuteCommand(sql1);
        }
Пример #2
0
        public void InsertUsers()
        {
            string sql = SQLHelper.GetSqlCommand("gocii", "pavee", "admin", "pass", "saltt", "hashhh", "admin");

            SQLHelper.ExecuteCommand(sql);

            string sql1 = SQLHelper.GetSqlCommand("gocii", "pavee", "user1", "pass", "saltt", "hashhh", "regular");

            SQLHelper.ExecuteCommand(sql1);

            string sql2 = SQLHelper.GetSqlCommand("gocii", "pavee", "user2", "pass", "saltt", "hashhh", "regular");

            SQLHelper.ExecuteCommand(sql2);

            string sql3 = SQLHelper.GetSqlCommand("gocii", "pavee", "user3", "pass", "saltt", "hashhh", "regular");

            SQLHelper.ExecuteCommand(sql3);

            string sql4 = SQLHelper.GetSqlCommand("gocii", "pavee", "goci", "pass", "saltt", "hashhh", "admin");

            SQLHelper.ExecuteCommand(sql4);
        }
Пример #3
0
        public void InsertUsers(string first, string last, string username, string pass, string salt)
        {
            string sql = SQLHelper.GetSqlCommand(first, last, username, pass, "saltt", "hashhh", "regular");

            SQLHelper.ExecuteCommand(sql);
        }