Results 1 to 6 of 6

Thread: Login system help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    91

    Login system help

    Hello, i've been clicked around on your forum and found incredible works from people allover the world, incredible.. I hope you can help me with my project..

    I have created a just a simple "Create" form, that creates .txt files into the right folder where i want it, then my question is.. how can i make a login form for it?

    And my second question, How can i get it to get "public" so people can
    connect to the same server, is it Winsock i'll be using or Mysql??
    I just want a simple login system to my program.
    So the easiest way will be the best in this case.
    Hope you can give me a answer, thanks..
    here's the code i use.
    ------------------------------------------------
    Private Sub Command1_Click()
    If Len(Dir$(App.Path & Text1.Text & ".txt")) = False Then


    Open App.Path & Text1.Text & ".txt" For Output As #1


    Print #1, Text1.Text
    Print #1, Text2.Text
    Print #1, Text3.Text
    Print #1, Text4.Text
    Close #1



    Let Text1.Text = ""
    Let Text2.Text = ""
    Let Text3.Text = ""
    Let Text3.Text = ""
    Call MsgBox("text " & Text1.Text & " text ")

    Else

    Call MsgBox("text " & Text1.Text & " text ")



    Call MsgBox(" text , " & Text3.Text & " text")
    Exit Sub

    End If

    End Sub
    ------------------------------------------------------

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Login system help

    You need to decide on a few things first...

    1.) If you want people to be able to login over the internet (or network), you will need a server. The server can be a VB program on your computer, or a database on your website. The first option is a lot easier using Winsock.

    2.) Do you want to use a database (like MS Access/MySQL) or a .txt file to store accounts? A lot of people here will recommend a database, but a .txt file can work also. How many people do you expect to login and use your program?

    3.) You will eventually (once you get things working) want some security so people can't view passwords just by opening the .txt file. You will want to use some sort of encryption to make things a little more secure.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    91

    Re: Login system help

    Some answers, Thank you for taking the time btw..

    1.) If you want people to be able to login over the internet (or network), you will need a server. The server can be a VB program on your computer, or a database on your website. The first option is a lot easier using Winsock.
    -Ok Winsock it'll be!

    2.) Do you want to use a database (like MS Access/MySQL) or a .txt file to store accounts? A lot of people here will recommend a database, but a .txt file can work also. How many people do you expect to login and use your program?
    -I would like to use the easiest way, which would be the .txt files
    And how many people i except.. well the program hopefully, will get as much people as it can take.. but i mean 1KB per account wont store that much on the winsock ?

    3.) You will eventually (once you get things working) want some security so people can't view passwords just by opening the .txt file. You will want to use some sort of encryption to make things a little more secure.
    -Yeah encryption would be very nice, you know how to get that on a .txt file?

    ---
    Now if you have a answer on how to make a login form, that's my highest prio at the moment..
    The security aint that so much important for me, well ofcourse i want higher than rightclick on the program and change password (Just example)
    But i dont want the fool-proof program, i jsut want some kinda security atleast..
    well i went trough a couple of winsock programs people made here, but i cant figure out how to make it in my case, a login case..
    Appreciate all the help!

  4. #4
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Login system help

    Quote Originally Posted by macbrutal
    Some answers, Thank you for taking the time btw..

    1.) If you want people to be able to login over the internet (or network), you will need a server. The server can be a VB program on your computer, or a database on your website. The first option is a lot easier using Winsock.
    -Ok Winsock it'll be!

    2.) Do you want to use a database (like MS Access/MySQL) or a .txt file to store accounts? A lot of people here will recommend a database, but a .txt file can work also. How many people do you expect to login and use your program?
    -I would like to use the easiest way, which would be the .txt files
    And how many people i except.. well the program hopefully, will get as much people as it can take.. but i mean 1KB per account wont store that much on the winsock ?

    3.) You will eventually (once you get things working) want some security so people can't view passwords just by opening the .txt file. You will want to use some sort of encryption to make things a little more secure.
    -Yeah encryption would be very nice, you know how to get that on a .txt file?

    ---
    Now if you have a answer on how to make a login form, that's my highest prio at the moment..
    The security aint that so much important for me, well ofcourse i want higher than rightclick on the program and change password (Just example)
    But i dont want the fool-proof program, i jsut want some kinda security atleast..
    well i went trough a couple of winsock programs people made here, but i cant figure out how to make it in my case, a login case..
    Appreciate all the help!
    Ok, I'll write up an example and upload it in a bit.

  5. #5
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Login system help

    Ok, try this.

    First, run the server, and add some accounts. Then open the client, leave IP as it is, and try to login.

    The code may seem overcomplicated (there are so many very, very, easy ways to do this) but this is the best way in my opinion without using an actual database.

    It should still run fast even if you have hundreds, or thousands of users, and is extensible and can be modified easily without having to change much code.
    Attached Files Attached Files

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    91

    Re: Login system help

    DigiRev, Thank you so much for your time..
    I'm soon about to look at the zip you uploaded, many thanks!

    Even if it's a complicated i got very easy learning things i like to do, now.. i'm not saying that i'll understand the whole cake.. but i'll look up the commands and why and what they are doing... Many thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width