Why would you do this via e-mail? Are you talking about a "I forgot my
password" thing, or just "I know my password, but I'd like to change it?"
Function Validate(CurrentPassword, NewPassword, NewPasswordConfirm)
Dim aCurrentPassword
'''first check current password is correct
aCurrentPassword = GetRecordset("SELECT [Password] FROM [Users] WHERE
[UserID]=" & iUserID)
If IsEmpty(aCurrentPassword) Then
Validate = 99
Exit Function
Else
If aCurrentPassword(0,0) <> CurrentPassword Then Validate = 1 : Exit
Function
End If
'''Check that new passwords match
If NewPassword <> NewPasswordConfirm Then Validate = 11 : Exit Function
'''Check min len
If Len(NewPassword) < 4 Then Validate = 2 : Exit Function
If Len(NewPassword) > 50 Then Validate = 3 : Exit Function
'''If here, all is cool
OpenData()
oADO.Execute "UPDATE [Users] SET [Password]=" & TextIn(NewPassword,50)
CloseData()
Validate = 0
End Function
Ray at work
"Danny" <da********@hotmail.com> wrote in message
news:ZC******************@news4.srv.hcvlny.cv.net. ..
Hello
I am looking for an asp change password solution. I know there are very
efficient ways of doing it and perhaps you have some samples or ideas.
Basically I would like the user to be able to change their password. Then
a
link is mailed to their email address on file and when they click on the
link, they are taken to a place to type in a new password.
Thanks in advance
Danny