473,809 Members | 2,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

change password on first login

Tom
when a user requests a password reset, a email is sent to them with the new
password and the URL for the login page. When the login for the first time
how can I force them to go to my change password screen?
Jul 14 '06 #1
2 9270
Hi Tom,

How about writing to the Comment field when the password is reset and then
testing for that marker when they log in again?

dim mbr as MembershipUser
mbr = membership.GetU ser("JackieReev e")
mbr.Comment="Mu stChangePasswor d"
'---------------------

if mbr.Comment="Mu stChangePasswor d" then
label1.Text="Yo u need to change your password"
end if
Ken
Microsoft MVP [ASP.NET]

"Tom" <To*@discussion s.microsoft.com wrote in message
news:6E******** *************** ***********@mic rosoft.com...
when a user requests a password reset, a email is sent to them with the
new
password and the URL for the login page. When the login for the first time
how can I force them to go to my change password screen?


Jul 15 '06 #2
I'm not using the MemberShip API or .NET 2.0 I'm using .NET 1.0 right now
for this app.
"Ken Cox [Microsoft MVP]" <BA**********@n ewsgroups.nospa mwrote in message
news:OH******** ******@TK2MSFTN GP05.phx.gbl...
Hi Tom,

How about writing to the Comment field when the password is reset and then
testing for that marker when they log in again?

dim mbr as MembershipUser
mbr = membership.GetU ser("JackieReev e")
mbr.Comment="Mu stChangePasswor d"
'---------------------

if mbr.Comment="Mu stChangePasswor d" then
label1.Text="Yo u need to change your password"
end if
Ken
Microsoft MVP [ASP.NET]

"Tom" <To*@discussion s.microsoft.com wrote in message
news:6E******** *************** ***********@mic rosoft.com...
>when a user requests a password reset, a email is sent to them with the
new
password and the URL for the login page. When the login for the first
time
how can I force them to go to my change password screen?



Jul 15 '06 #3

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

Similar topics

10
9895
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 {
2
2650
by: Felix Melendez | last post by:
Hi there! I'd like to know if anyone out there can give me a helping hand. I've developed an asp.net application that uses Forms Authentication. Question: I'd like to give users the ability that after every 30 days, they must change their passwords. So if the 30 days have passed, and user FELIX tries to log on, I want this user to be redirected to a ChangePwd.aspx web page. Once the user changes his/her password, he/she must be taken...
2
3206
by: pj | last post by:
I'm using asp.net 2.0 login controls, When a user forgets a password, they are sent an email with the new password. Two questions.... 1) how do I format the password that is being created to be only letters and numbers? Not something like "e%QtT6.Eja%XNG" 2) how do I redirect users to a change password page, next time they login with the new password sent to them via email? thanks is advance for any assitance,
2
2956
by: rengaraj | last post by:
Hello. How can i manage that every user must change their password at the first login? With Suse 9.1 it works: "passwd -e user" But I use REDHAT 9.0 ... Kernel 2.4! here a flag like "-e" does work. "passwd --help" dont show the solution for my problem.
1
7430
by: roshina | last post by:
Hi Iam facing a problem in my project, developing a web site for online shopping in ASP on windows XP using IIS server. All the validations are ok but the new password is not upadated in the data base and also showing a error page. the operating system we used is Windows XP, the source code is ASP, front end we used - HTML and javascript and vb script for validations. the inputs we used are : old pasword :
0
921
by: Ken | last post by:
I tried to make a web page for reset password for ftp users. Is these any way to change the password without using the servername but using OU and DC ?
7
5388
parshupooja
by: parshupooja | last post by:
Hi I have created a login page which has user name n password. After entering values it authenticate from SQL Server and if it is correct, it forwards to designated page otherwise shows invalid login message. i have 5000 users in my system, so i opted this way. Now i want ot create a button on login page which shows change password. I want to replace my old password field value with new password field. I don't want to create another column...
3
5046
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 user has the "User must change password" flag set in Active Directory, ValidateUser() always returns false if that user wants to log in.
7
4399
by: Jesse Jones | last post by:
Any ideas on how to send info from one form into another domain or how to write a default value for a new user's password with a formula? Here's what I'm trying to do: design my database so that a new employee record has a password generated with a formula (obviously, not one that is published). On the employees table is a true false declaring if the user's password needs changed. The default value is true. So when I create a new record (add...
0
9601
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10635
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10378
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10115
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6881
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
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 we have to send another system
3
3013
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.