eZ Community » Forums » Developer » How do I access the site as none of...
expandshrink

How do I access the site as none of my passwords work anymore?

How do I access the site as none of my passwords work anymore?

Thursday 27 March 2003 2:40:40 pm - 2 replies

I have installed the latest release of ez (3.0-1) fantastic!!.

But I have locked myself out from using any of the usernames and passwords. How can I get access to the site by maybe removing md5_hash and resetting it.?

Your help is appreciated.

Thanks in advance.

Stuart

Thursday 27 March 2003 2:50:30 pm

To generate a new password you need to do the following:
Create a new md5 hash. This can be done with the command (linux):
echo "mypassword" | md5sum
Which will print the md5sum:
d84c7934a7a786d26da3d34d5f7c6c86

You then need to reset the values in the SQL database for your user.
update ezuser
set
password_hash_type='1' , password_hash='d84c7934a7a786d26da3d34d5f7c6c86'
where
contentobject_id= 10;

Replace 10 with the id of your user.

PS: take backup of your database before you start.

--bård

Friday 28 March 2003 11:31:52 am

If you aren't sick about security you can use more simple way to update password
update ezuser
set
password_hash_type='5' , password_hash='your _plain_text_password'
where
contentobject_id= 10;
Replace 10 with the id of your user.
Password will be changed to md5_hash after your first login automatically.

Modified on Friday 28 March 2003 11:32:05 am by Sergiy Pushchin

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from