Forums

read data about the user

hcohl 27 Apr, 2017
Hallo,
I have to know the registration data of the user who uses my form.

<?php
$user=JFactory::getUser();
?>

<?= $user->username; ?><br />
<?= $user->password_clear; ?>

But the password is encrypted. How can I get the password in clear text?
Thank you for your answer.
HC
Max_admin 27 Apr, 2017
Hi HC,

There is no way to do that if you did not store a copy of it when they registered, Joomla encrypts the passwords for security.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
hcohl 27 Apr, 2017
Thank you for your answer.
How can I store a copy of the password, which is not encrypted?
GreyHead 27 Apr, 2017
Hi hcohl,

You can't, for security Joomla! does not save the clear password, just a 'hash' that can be used to verify it.

Bob
hcohl 27 Apr, 2017
How could the hash look? I have no idea.
Max_admin 27 Apr, 2017
Hi hcohl,

The hash is inside the password field in the users table, it can't be decrypted.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.