In Visual Web Developer 2008 Extended Edition, is there a way to set up the system to force users to change their password upon initial login?
Also, will the system require users to change their password every 120 days, for example, or are users allowed to keep their password indefinitely?
As far as I know there is no such built in mechansim available with the Asp.Net.. at least it is nit ther till VS 2005..
But yoy can easily implement such logic using the membership database.. Put one new fileld LoginCount in your profile table and increment it each time the user login..
If the LoginCount == 0, it means the user is loggin in for the first time.. now redirect the user to change password page
Also in each subsequent loggin in check the LastPasswordChange date available in the aspnet_membership table to see whether the user changed password in last 120 days.. if no redirect the user to change password page
Hope it helped.. let me know for any clarrification
Hi Anz –
This may be a question with an obvious answer, but I’m extremely new to this tool (2 months), so I will ask. How / where do you access the database (and database tables) to enter these fields (i.e. LoginCount, LastPasswordChange, etc.)? I have checked in
the Toolbox under Data, but I don’t find these components. I also looked in the Database Explorer and all I see is "Data Connections", but can’t figure out how to open this??
Also, are these components "drag & drop" like other tools (i.e. LoginView, LoginName, etc.)?
Hi Kirsten… you may need to go through some of the beginner tutorials available in this site..
Please see this section http://www.asp.net/learn/ and you will find a huge collection of step by step video tutorials which will lead you to the world of Asp.Net and dynamic database driven websites…
This tutorial explaining all database related things http://www.asp.net/learn/data-access/
and this one explains all about membership database, user accounts and all. http://www.asp.net/learn/security/
after going through the tutorials in these sections you will understand what I meant in my last post..
Berst of luck with your learning.. and you can always ask any doubts in this forum.. all of us here are ready to help you at anytime..