When logging in to your account, a safe way is to log in to the account on the same computer or mobile phone through the same browser. If you frequently sign in to your account on different devices through different browsers, your account activity may be considered suspicious and the service provider will disable your account.
Feb 10, 2010 · I already made security login that if failed 3 times the program will be terminated. However, I want to make a security login that will lock the system and the admin will be required to login instead. Here’s my code:
Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click Dim Password As String Dim x As String Dim Attempts As Integer ‘maybe use for loop Password = "House" x = txtPassInput.Text If Attempts = 3 Then Me.Close() End If If x = Password Then MsgBox("Correct password, you are now logged in.") Else Attempts = Attempts + 1 MsgBox("You …
dim attempts as integer attempts = 0 private sub Login() if attempts <= 3 then if username = "username" and password = "password" then ‘login else attempts = attempts + 1 end if else ‘contact systems admin end if End sub private sub Reset() If adminUser = "adminUser" and adminPass = "adminPass" then attempts = 0 end if End sub