Results 1 to 9 of 9
  1. #1
    GG2GG's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    United Kingdom
    Posts
    3,382
    Reputation
    21
    Thanks
    4,294,967,295
    My Mood
    Blah

    Username and password help

    Well im trying to make a login system that checks usernames and passwords. i can check fine against ../users/username/username.txt and password.txt
    on the user's computer. but would like to check against mysql database.

    Code:
    If TextBox4.Text = ""Then
    MsgBox("Error No Username Selected!", MsgBoxStyle.Critical)
    Else
    IfMy.Computer.FileSystem.DirectoryExists("c:iCodedusers" + TextBox1.Text + "") Then
    Dim Userread As System.IO.StreamReader = New System.IO.StreamReader("c:iCodedusers" + TextBox1.Text + "" + "username.txt")
    Dim Userline AsString
    Dim Passread As System.IO.StreamReader = New System.IO.StreamReader("c:iCodedusers" + TextBox1.Text + "" + "password.txt")
    Dim Passline AsString
    Do
    Passline = TextBox2.Text
    Userline = Userread.ReadLine()
    Console.WriteLine(passline)
    Console.WriteLine(userline)
    LoopUntil userline IsNothing
    If TextBox2.Text = ""Then
    MsgBox("Error Fill a password in", MsgBoxStyle.Critical)
    Else
    If Passline = Passread.ReadLine() = TrueThen
    MsgBox("Welcome!", MsgBoxStyle.Information)
    Form2.Show()
    Me.Hide()
    EndIf
    Thats what i have so far
    Last edited by GG2GG; 03-22-2009 at 07:00 AM.

  2. The Following User Says Thank You to GG2GG For This Useful Post:

    Elixsur (10-07-2009)

  3. #2
    GG2GG's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    United Kingdom
    Posts
    3,382
    Reputation
    21
    Thanks
    4,294,967,295
    My Mood
    Blah
    newfag's dont know how to code ?

  4. The Following User Says Thank You to GG2GG For This Useful Post:

    Elixsur (10-07-2009)

  5. #3
    Chuck Norris's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    Between my ears
    Posts
    1,703
    Reputation
    86
    Thanks
    456
    My Mood
    Angelic
    Maybe combine with PHP? PHP commands are easy to combine with MYSQL..
    “Those who control the past, control the future: who controls the present controls the past” ~ George Orwell

    Its me, Dreamgun

  6. #4
    [D]evliin's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    Meh.
    Posts
    1,388
    Reputation
    22
    Thanks
    73
    My Mood
    Happy
    they are!?:d
    [IMG]https://i157.photobucke*****m/albums/t54/murckleman/nub1.jpg[/IMG]

  7. #5
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    Mother fucker, close your VB IDE right mo-effin now, if I see another line of VB written by you ima srs eat you :@



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  8. #6
    tweaker99's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    968
    im good at vb what are you trying to do ? you just want vb to read a txt file and if the username & pass dont match to not login ?

  9. #7
    Lukas59's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    Linz
    Posts
    2,197
    Reputation
    14
    Thanks
    306
    My Mood
    Amazed
    great Job and thanks first but u don´t get one^^

  10. #8
    orx's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Estonia
    Posts
    59
    Reputation
    11
    Thanks
    4
    Yep man , you should use PHP + mysql , first get urself a mysql server , or instal xampp on your pc , then write script for your self little example for log in without sql:
    <?php
    echo "<form method="post" action="">";
    echo " Username: <input type="text" name="username"> <br/>";
    echo " Password: <input type="password" name="password"> <br/>";
    echo "<input type="submit" value="Log In">";
    echo "<form/>";

    $username = $_POST['username']
    $password = $_POST['password']
    if ($username == "OrX" && $password == "password") {
    echo "Congrats you just logged in!";
    }
    else
    {
    echo "Gtfo nub , wrong username or pw!";
    }
    echo "Script by -OrX|=-";
    ?>

    Good luck , i could help you out with php and stuff if you need help MSN:lauriadi@hotmail.com

    -OrX|=-

  11. #9
    Toymaker's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Location
    Hannah, Montana
    Posts
    659
    Reputation
    14
    Thanks
    193
    My Mood
    Amused
    I posted a basic working readfile function for you vb6 users but this thread is old and unwanted so I'm going to close it now but PM me if you have more questions.

    Code:
    Private Sub CheckPass_Click()
    Dim variable1 As String
    Open "c:username.txt" For Input As #1
    Input #1, variable1
    Close #1
    if username.txt = variable1 then
    MsgBox("Welcome!")
    End Sub

Similar Threads

  1. Replies: 0
    Last Post: 02-06-2008, 02:30 AM
  2. I need a webhoster and some help to make www.warrockshop.net!
    By bambell in forum WarRock - International Hacks
    Replies: 10
    Last Post: 10-14-2007, 09:03 AM
  3. Warrock Nicknames And Passwords : 4 mpgh
    By apezwijn in forum WarRock - International Hacks
    Replies: 18
    Last Post: 08-01-2007, 09:45 PM
  4. Jadbolt Trance V2 and V3 help
    By Valor in forum WarRock - International Hacks
    Replies: 4
    Last Post: 04-23-2007, 10:45 AM
  5. Project 16 (im new to hacking and need help)
    By FlameDragon in forum WarRock - International Hacks
    Replies: 21
    Last Post: 04-21-2007, 11:06 AM

Tags for this Thread