Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 476
  • Last Modified:

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

Hello.  I have a asp.net 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
0
bidgadget
Asked:
bidgadget
  • 2
1 Solution
 
Paul MacDonaldDirector, 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.
0
 
bidgadgetAuthor Commented:
Thank you for your response. Where and how would I check the flag?
0
 
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now