SnippetMaster Support Forums

General => How To's & FAQs => Topic started by: maritimesweather on February 17, 2007, 08:16:39 AM



Title: I forgot my login and password
Post by: maritimesweather on February 17, 2007, 08:16:39 AM
What would be my best option for retrieving or resetting the username and password for logging into Snippetmaster?

I have SnippetMaster installed on our site, but haven`t used in several months. This morning, I decided to use it, then sat and stared at the login fields because I couldn`t remember either of them :) The email associated with the account is likely old and not working too so I can't use the "send my password" link.

As the files are encoded, where is this info stored?

Thanks.


Title: Re: Forgot login and password
Post by: admin on February 18, 2007, 07:13:32 PM
The best thing to do is manually change the email address for your admin user and then go through the password reminder link.

You can manually change the email address by modifying the database file.  Here are the instructions:

1) Download the "/snippetmaster/snippet-db/random_name/users.php" database file from your web server to your computer.

2) Open it in a text editor, such as notepad.  You will see all the users listed -- one for each line.

3) Find the admin user (usually the first user listed) and change the email address to a working address.  It should look something like this:

Quote

1#admin#as33dff3af323fded#FirstName#LastName#you@domain.com#1#/home/user/public_html#http://domain.com#English#1#admin#1#1#1#Description here.#0#


4) Save the file, and upload it to your web server, overwritting the existing file.

5) Now go to the login screen and click the "forgot my password" link.

:)


Title: Re: Forgot login and password
Post by: shibori on March 19, 2007, 09:07:16 AM
I too can't remember the password for the main user for the accounts that I setup. 

 I have gone into this file that you indicated  - I changed the email address to my address and not the client's but I'm still not receiving an email.


Title: Re: Forgot login and password
Post by: admin on March 19, 2007, 09:15:51 AM
The "send my password" utility definately uses the email address for the user.  So if you've changed the email address in the users.php file and it still doesn't work.. then i would ask your web host to verify your email account settings, etc.  

Also, make sure you logout and login again, so that the new users.php file changes are used.  

If you are still stuck, then you can manually change the password for the user like this:

1. Follow the steps above to download and open the users.php file for editing.

2. Find the admin user (usually first one listed) and you will see the "encrypted password" as a bunch of random looking characters.  It should like something like this:

Quote

1#admin#V1ZkU2RHRlhORDA9#FirstName#LastName#you@domain.com#1#/home/user/public_html#http://domain.com#English#1#admin#1#1#1#Description here.#0#


3. Replace the random looking characters (highlighted with red bold  in the example above) with the following new encrypted password:

V1ZkU2RHRlhORDA9

** NOTE: Do *not* replace the "#" character on either side of the encrypted password.  These are needed to tell the database program when the encrypted password starts and stops.  Look carefully and you'll see this character is used between each "field" in the row of user details...  Be sure not to touch that part.

4. Save the file to your website.

5. Now you should be able to login using your username with the password of "admin".

If you get stuck, please send me an email and i will try to assist.



Title: Re: Forgot login and password
Post by: shibori on March 19, 2007, 02:13:28 PM
How wild --- but yes that did work.
Thanks,