Question how to reset password?

Adrian87

Member
Joined
Aug 13, 2009
Messages
13
Programming Experience
Beginner
can anyone help, what i mean is how am i going to reset the password and set a new password? thx
 
Hi Adrian,

Where you keep your password? Is it sort of database (XML, Aceess, MSSQL, MySQL ...)?

In order to change the password usually you prompt your users to enter the old one and then if it matches you change it by using an UPDATE statement. e.g.

VB.NET:
If statement (expression) Then
   UPDATE accounts SET Password='" & TextPassowrd.Text & "' WHERE User = '" & loggeduser & "'
End If

This is just a pseudo code but should give you an idea about how it works.
 
yup keep in database access, thx for your help, so beside that do you know how to link the username and password to the database?
 
well ya i m struggling to start, yup is a project, the first step is i want to connect to database, do you know the code to connect to database?
 
Back
Top