Solved

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

Posted on 2011-03-16
3
456 Views
Last Modified: 2012-05-11
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
Comment
Question by:bidgadget
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 500 total points
ID: 35150526
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
 

Author Comment

by:bidgadget
ID: 35150551
Thank you for your response. Where and how would I check the flag?
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 35150735
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

Independent Software Vendors: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question