ASP.NET 4 and visual studio 2010 Membership web USING vb

Hello.  I have a 4 membership role based web using visual basic and visual studio 2010.  I am creating a site where I will create users names and passwords.  I then send the username and password to the person.  What I want to do is have the site force the user to change the password on first login, but I am not sure how to do that.  Any help will be appreciated.  I also would like them to be forced to change the password after they recover.  

Thank you
Who is Participating?
Paul MacDonaldConnect With a Mentor Director, Information SystemsCommented:
It sounds like you'll need a flag - perhaps a boolean value - associated with the user's record in the database.  Set the flag to "true" when they first register and when they request a new password.  Then check for the flag every time they log in.  If the flag is true, send them to a page where they have to change their password.
bidgadgetAuthor Commented:
Thank you for your response. Where and how would I check the flag?
Paul MacDonaldDirector, Information SystemsCommented:
You'd have to write that code from scratch.  You'd want to implement it sometime after they logged in, whereever you allow them to do that.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.