The last couple of days I’ve been coding with the Windows Identity Foundation (WIF) in order to create a WS Federation Security Token Service (STS) that provides the user authentication for multiple relying parties (RPs). I decided to write a small tutorial and a sample (full commented) project that describes the basic steps that are required in order to setup the authentication via passive federation.
Showing posts with label membership. Show all posts
Showing posts with label membership. Show all posts
Saturday, July 17, 2010
Tuesday, May 18, 2010
Hard reset password on asp.net membership provider (applied to DNN)
I just moved a DNN (DotNetNuke) installation from a computer to another and restored the database in order to be able to work locally. DNN uses asp.net Membership as its default security provider thus I could not login to the web site (all passwords are encrypted using the local machine key). In order to override the password I wrote the following lines of code:
Happy coding and don't forget to delete the above mentioned lines after reseting the passwords!
Dim mu As MembershipUser = Membership.GetUser("MyUserName")In the default page’s init event. This is the way to programmatically change any membership account’s password.
mu.ChangePassword(mu.ResetPassword(), "mytoughpassword")
Happy coding and don't forget to delete the above mentioned lines after reseting the passwords!
Labels:
asp.net,
dnn,
dotnetnuke,
membership,
reset password,
VB.net
Subscribe to:
Posts (Atom)