How to show user password in template?

Author Message

Bjørn Sandvik

Tuesday 07 September 2004 7:09:03 am

I want to make a template with list of users on a website (for administration purposes). I want do display the login and password for each user. The login is easy to fetch - but the password is stored as a hash string. Is it a way to translate a hash string to show the real password in a template?

contentobject_id string 148
login string 'fivh-bergen'
email string 'fivh-b@online.no'
password_hash string 'a8ee045d6ffca9b31a5e1b68f4555e38'
password_hash_type string 2

http://blog.thematicmapping.org
http://www.globalis.no

Bård Farstad

Tuesday 07 September 2004 7:26:50 am

Bjørn,

you cannot show the real password in the template. It's not available for security reasons.

If you want to use plaintext passwords you need to change the HashType in site.ini:

HashType=plaintext

If you change the password hash it will only affect newly created accounts, since there is no way (except brute force) to get the password from the hash.

--bård

Documentation: http://ez.no/doc

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 19 2025 09:39:30
Script start
Timing: Jan 19 2025 09:39:30
Module start 'layout'
Timing: Jan 19 2025 09:39:30
Module start 'content'
Timing: Jan 19 2025 09:39:30
Module end 'content'
Timing: Jan 19 2025 09:39:30
Script end

Main resources:

Total runtime0.0163 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.1719152.6250
Module start 'layout' 0.00570.0033 741.796939.4453
Module start 'content' 0.00900.0053 781.242289.4297
Module end 'content' 0.01420.0020 870.671930.3047
Script end 0.0163  900.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.8470140.0002
Check MTime0.00116.5753140.0001
Mysql Total
Database connection0.00116.839810.0011
Mysqli_queries0.002716.248330.0009
Looping result0.00000.207510.0000
Template Total0.001710.410.0017
Template load0.00085.197410.0008
Template processing0.00085.179910.0008
Override
Cache load0.00053.315410.0005
General
dbfile0.00042.162580.0000
String conversion0.00000.061440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs