473,499 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

looking for a 'change password' solution

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
Jul 19 '05 #1
2 1636
Generally this is done using 3 textboxes :
- one for the old password
- and two to enter the new password twice

The mail is rather used sometimes when someione lost his password. In some
cases a new one is generated and mailed back to the user. A link reminds
where they can change the autogenerated password if they prefer...

Patrice

--

"Danny" <da********@hotmail.com> a écrit dans le message de
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

Jul 19 '05 #2
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

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1493
by: Steve P | last post by:
We're running an ASP page (the stock page that comes with IIS for password changing with some minor tweaks) which makes some ADSI calls - note: it connects to the Active Directory a few times. ...
2
2472
by: Jim Lewis | last post by:
After everything I have read and some of my own testing I am convinced that XPathDocument are more efficient if you are only using XML for read only and not modifying the XML. However, I have been...
2
4437
by: shenanwei | last post by:
DB2 user OS to do the authenticate. For security reason, the password of the used used by the application need to be changed. To change the source is easy, but there is hundreds of applications...
12
3034
by: Arno R | last post by:
Hi there, I just distributed an application in which I (try to) change db.properties depending on CurrentUser() For instance I set the property's AllowBypassKey and AllowBuiltinToolbars to False...
10
9834
by: Fabrizio | last post by:
(Sorry for the crosspost, but I really don't know which is the right newsgroup!) Hi all, I try to change the password to a user that as to change the password at first logon: try {
1
2565
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am...
11
2332
by: matsi.inc | last post by:
I am looking to make something like a delegate that i can use in my projects but am having a hard time getting started. The behavior I am most interested in is how a delegate changes it's Invoke...
3
5026
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, we've got a strange problem here: We've created an ASP.NET 2.0 web application using Membership.ValidateUser() to manually authenticate users with our website. The problem is: If the...
0
2190
by: shellegreen | last post by:
Hello, I need help with some password changes that I have to do in some iPAQs. The company that I work has 3 models of iPAQ and 3 different versions of Windows Mobile (Microsoft Pocket PC...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7229
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.