ExclamationLogin page with *******

Posts 1–5 of 5 · Page 1 of 1
Login page with *******
Hello guys

this code for login file by Txt is the elevation at (d r o p b o x) It is based on a single user name and I want to add more than one user in txt file Please Help


Imports System.Net, Microsoft.Win32
Imports System.Management
Imports System****
Imports System.Security.Cryptography
Imports System.Text
Imports System.Threading
Dim username As String
Dim all As String
Dim logins As String = 0
Private Sub LoginButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LoginButton.Click
Dim Name As String = True

logins = logins + 1
If logins = 4 Then
MsgBox("You have failed 3 times!")
Application.Exit()
Exit Sub
End If

Dim web As New WebClient() Dim i As String = textbox1.Text & ":" & textbox2.Text

Dim response As String = web.DownloadString("YOUR ******* ACCOUNT.txt")
If response.Contains(i) Then
Else : MsgBox("Invalid Login", MsgBoxStyle.Information)
Exit Sub
End If
If textbox1.Text = "" Or textbox2.Text = "" Then
MsgBox(" Error ")
Else
MsgBox("Welcome Member : " + textbox1.Text)
Me.Hide()

End If

End Sub
It is based on a single user name and I want to add more than one user in txt file
you sure?


Dim response As String = web.DownloadString("YOUR ******* ACCOUNT.txt")
If response.Contains(i) Then
If response.Contains(i) Then LoginSuccess = True.
If the text file contains the user/ pass combination, it will count as "logged in."
The code already supports a multi-lined txt file.

Just add more usernames/ passwords to the file. ?

With that said, I'd make a couple changes..

Dim username As String
Dim loginAttempts As Integer= 0

Private Sub LoginButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LoginButton.Click
If textbox1.Text = "" Or textbox2.Text = "" Then
MsgBox("Username/Password Error ") '' textBox1.Focus() or textBox2.Focus() ?
Exit Sub
End If

loginAttempts += 1
If logins = 4 Then
MsgBox("You have failed 3 times!")
Application.Exit()
End If

Dim web As New WebClient()
Dim userAccount As String = textbox1.Text & ":" & textbox2.Text

Dim response As String = web.DownloadString("YOUR ******* ACCOUNT.txt")
If response.Contains(userAccount) Then
''User/pass was found. Success.
loginAttempts = 0
username = textbox1.Text
MsgBox("Welcome Member : " + username)
Me.Hide()
Else
''User/pass not found.
MsgBox("Invalid Login", MsgBoxStyle.Information)
Exit Sub
End If

End Sub
If anyone can download the password file... I'm not sure of the security involved, but...
Quote Originally Posted by abuckau907 View Post
you sure?



If response.Contains(i) Then LoginSuccess = True.
If the text file contains the user/ pass combination, it will count as "logged in."
The code already supports a multi-lined txt file.

Just add more usernames/ passwords to the file. ?

With that said, I'd make a couple changes..



If anyone can download the password file... I'm not sure of the security involved, but...
Use a MySQL database. I've heard of some websites that offer free database hosting for free.
Tut here:
@R3DDOT Are you speaking to me..? (why quote me?)
Quote Originally Posted by abuckau907 View Post
@R3DDOT Are you speaking to me..? (why quote me?)
Actually I wanted to quote you and @belal200898 , XD.

But I was talking to him though :3
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us