Skip to content
Omniscientgeek

Omniscientgeek

Just another WordPress site

  • Home
  • About
  • Portofolio
  • Project Details
  • Blog

Recent Posts

  • Hello world!
  • The Push for Go-Live (AKA the change we have been waiting for)
  • NP Complete in the real world
  • Best practice of commerce website
  • Compliance for e-commerce

Recent Comments

No comments to show.

Archives

  • December 2021
  • November 2019
  • November 2017
  • May 2014
  • April 2014
  • May 2013
  • February 2013
  • January 2013
  • November 2012
  • October 2012
  • July 2012
  • May 2012
  • April 2012
  • February 2012
  • November 2011
  • August 2011
  • June 2011
  • July 2009

Categories

  • Not Published
  • Published
  • Uncategorized

Month: November 2011

Reset Admin Password

The following code will reset the admin user password to B. This is helpful when needing to get access in the developement enviroment
	MembershipUser user = Membership.GetUser("sitecore\\admin");
	string password = user.ResetPassword();
	if (!user.ChangePassword(password, "b"))
	{
		throw new Exception("Failed to set password");
	}
Posted on November 23, 2011Categories UncategorizedLeave a comment on Reset Admin Password
Proudly powered by WordPress