Forums / General / How to show user password in template?

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 '[email protected]'
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