I am in the process of making a ASP.NET C# Website and i need to output the last time the user has changed their password into a label.
Do i need to create a seperate tabel in my database for this? Or is there a function i can just call from somewhere?
I did do some research and i believe i have to use:
public virtual DateTime LastPasswordChangedDate { get; }
But i cannot find out how to implement this into my website as all examples with this that i could find simply use it to create a system to force users to change their password after a set amount of time and not to write the current value to a String.
Any help will be much appreciated.
Problem solved,
MembershipUser u = Membership.GetUser();
PWChangeDateLabel.Text = u.LastPasswordChangedDate.ToString("d/m/yyyy");