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

Author Message

Stuart Fenton

Thursday 27 March 2003 5:40:40 am

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

Bård Farstad

Thursday 27 March 2003 5:50:30 am

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

Documentation: http://ez.no/doc

Sergiy Pushchin

Friday 28 March 2003 2: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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:41:26
Script start
Timing: Jan 18 2025 10:41:26
Module start 'layout'
Timing: Jan 18 2025 10:41:26
Module start 'content'
Timing: Jan 18 2025 10:41:27
Module end 'content'
Timing: Jan 18 2025 10:41:27
Script end

Main resources:

Total runtime1.1921 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 588.1719152.6563
Module start 'layout' 0.00900.0039 740.828139.5078
Module start 'content' 0.01291.1778 780.3359575.8594
Module end 'content' 1.19070.0014 1,356.195312.0938
Script end 1.1921  1,368.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3129160.0002
Check MTime0.00150.1252160.0001
Mysql Total
Database connection0.00160.134810.0016
Mysqli_queries1.133295.0546590.0192
Looping result0.00060.0492570.0000
Template Total1.153796.820.5769
Template load0.00210.174420.0010
Template processing1.151696.602820.5758
Template load and register function0.00020.016910.0002
states
state_id_array0.00080.067110.0008
state_identifier_array0.00150.129520.0008
Override
Cache load0.00180.1489340.0001
Sytem overhead
Fetch class attribute can translate value0.00070.060830.0002
Fetch class attribute name0.00190.157950.0004
XML
Image XML parsing0.00120.100830.0004
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00150.1257230.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs