change password on first login

G

Guest

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?
 
K

Ken Cox [Microsoft MVP]

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.GetUser("JackieReeve")
mbr.Comment="MustChangePassword"


'---------------------

if mbr.Comment="MustChangePassword" then
label1.Text="You need to change your password"
end if
Ken
Microsoft MVP [ASP.NET]
 
J

John

I'm not using the MemberShip API or .NET 2.0 I'm using .NET 1.0 right now
for this app.
Ken Cox said:
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.GetUser("JackieReeve")
mbr.Comment="MustChangePassword"


'---------------------

if mbr.Comment="MustChangePassword" then
label1.Text="You need to change your password"
end if
Ken
Microsoft MVP [ASP.NET]

Tom said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top