Retrieve password

Topics: Troubleshooting
May 5, 2011 at 4:41 AM

Hi.

I last used a prototype site around 6 months ago and now the poweres that be want to resurrect the project.  problem is, I have forgotten the username and passsword used when I created the site.  How can I retrieve these?

Any help would be appreciated.

Regards.

Coordinator
May 5, 2011 at 9:29 AM

Hi StuB

 

1. Open file /App_Data/Composite/DataStores/Composite.Data.Types.IUser_Published.xml

2. Find a line like

  <User Id="2a1d4094-e082-4f70-8542-584040d69a3c" Username="admin" EncryptedPassword="xxxxxxxxxx" Group="Administrators" />

3. Change the value of the EncryptedPassword attribute to 

uUjWIF+cOm37oCBU+Tyf6w==

4. Restart the site

After that your user will have password "123456", after loggin' in you can change password's value by editing your user's details in  "Users" perspective

 

P.S. Glad you're back :) remember to upgrade to C1 2.1 to get the functionality up-to-date

Jul 21, 2011 at 6:45 AM

Another way to do this is if you know the Username, you open up /Renderers/Page.aspx.cs and insert the following code into the page_Init:

UserValidationFacade.FormSetUserPassword( "admin", "something" );



Just don't forget to delete the line of code after you've rendered the page, or you'll be resetting your password each and every time.

Kind of a quick and dirty way of doing it, but it works.