In my login form, there's a Forgot Password button. In the Forgot Password form, the user is asked to answer a secret question that he filled up upon registration, and if the answer is correct it will lead him to a Change Password form. My problem is, I don't know how to get then delete and then replace the password of a certain user. I attached some screen shots of my work.
I'm a newbie in vb. My first project is a grading system for a certain school. In my login form, there's a Forgot Password button. In the Forgot Password form, the user is asked to answer a secret question that he filled up upon registration, and if the answer is correct it will lead him to a Change Password form. My problem is, I don't know how to get then delete and then replace the password of a certain user
My first project is a grading system for a certain school. In my login form, there's a Forgot Password button. In the Forgot Password form, the user is asked to answer a secret question that he filled up upon registration, and if the answer is correct it will lead him to a Change Password form. My problem is, I don't know how to get then delete and then replace the password of a certain user.
I thought i am doing fine with my project..The access level is fine.. when i login as "ADMIN". I can change the password.. But for other users, if i click save nothing happens but if i click it again it will save(In my savebutton event the txtbox is cleared if saved)
Here is the code for my login(this is the access level part)
If reader.Read Then Dim access As String = reader.Item("Position").ToString Select Case access Case "ADMINISTRATOR" Me.Hide()
[CODE]...
AND THIS THE change PASSWORD PART
Private Sub UserPasswordUpdate()
Try Using _connce = New SqlCeConnection("Data Source=" & _dbAlumniTracking) _connce.Open()
im currently working in a project and i already made a code for the login, the only thing is that i dont know how to update the records(Username/Password) in access using VB 2010. well i can update by manually changing the content of my table but i like to have it change using an interface in my vb named Manage account
I'm trying to create a password change form for my company's vendors. There are a couple of scenarios I could encounter doing this:
1 - User enters invalid current password 2 - New passwords do not match 3 - User's account is locked 4 - User cannot authenticate because password is expired
It's case 4 that I'm struggling with, because their is no way for me to take the password the user entered and verify it against active directory without getting an error.
How do I get it so my program reads the database when its password protected? This is the code I have at the moment?. Code: myConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|db1.mrk;"
I want to be able to have a textbox where user enters their username and password.It then will need to check the database and see if the username and password exist.If so take them to another form.[code]I have started the db connection and checking the database but am struggling with checking if they exist.
I need to create password access to a front end menu by calling a function so far all i have is the following:
Private Sub btnLogIn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogIn.Click If txtPass.Text = "password".ToUpper Or txtPass.Text = "password".ToLower Then
I'm using an MS Access database which has password (database password, not a workgroup or smth). I'm using 13 characters - with no special signs- only letters. When I try to open the DB from access it works fine, but when I try to run my Windows Form application from Visual Studio Connection String, I get a message that "Not a valid password".
I am making a password box with an if statement. I also want another form that I can change the password and if I close the password box, it will save the current password.
i have made a program that needs a password to activate it but i would like it to look for a text file in the same directory called "password.text" as it will alow me to change the password.
I inherited a Visual Basic Excel program and am having problems changing the password for Worksheets. I set a workbook password but then everyone has to enter the password to use the program. That is not what I want and took that out.[code]...
I've password protected an mdb file but then I cannot access it on vb.net. I don't know the correct code for defining the password.this is my current code, I know its wrong, but I don't also know the correct code:
I am connecting to a MS SQL Server DB on my web server from a VB.net app. I am planning to distribute this software.
SO if I for some reason need to change the DB password, obviously the software won't be able to connect. So how would I go about having the program find the new password and storing it without compromising security?
Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ChangePassword("mydomain.local", "MyUsername", "ValidTestedCurrentPassword", "IAmNew Password!123") End Sub
[code]....
I am using the above code to allow a user to change the AD password via an application, this is just a sample of the problem code.The error it is generating is that the password is not complex enough, and it does not matter what I put in the new password, it always reports "The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements. (Exception from HRESULT: 0x800708C5)" I have tried it as user@domain domainuser I have then tested on one of the domain computers the same password and it changed there without issue.So I can only assume the error message is incorrect.I have tried several combination's of samples on line and they all seem to point back to this as the proper method, I feel certain I am overlooking something.
I am using following code to replace the passwords in my app.config. It replaces successfully but does not reload config file in the memory so datasets give error of wrong password.
Dim vrTextFind As String = "Password" Dim vrTextReplaceWith As String = "PWD" Dim path As String = "D:VS2008EncTestEncTestinDebugenctest.exe.config"
I am using a Formview for Change Password funciton in my project. It works OK with update and validations.I am now trying to add code for Strong Password as follows:
Private Sub FormView1_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) Handles FormView1.ItemUpdating Dim password As String = CType(FormView1.FindControl("PasswordTextBox"), TextBox).Text Dim score As PasswordScore = PasswordAdvisor.CheckStrength(password)
[Code]...
In the class, the Match.Success always returns "False" and also, irrespective of the validity of the password entered, it gets updated in the database. Is there any way to control the Update function of Formview, so that the password is updated only if it is valid?